<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Thread]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich erstelle mit _beginthreadex einen Thread.<br />
Als Threadfunktion übergeben ich eine statische memberfunktion meiner Klasse.<br />
_beginthreadex meldet keinen Fehler, der Thread startet jedoch nicht. Rufe ich dann WaitForSingleObject(HANDLE,INFINITE) auf fängt der Thread plötzlich das &quot;Laufen&quot;. CreateThread, AfxBeginThread, etc versachen alle das selbe Problem.</p>
<p>Weiß jemand Rat, ich hoffe doch ...</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80561/thread</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 08:17:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80561.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Jul 2004 10:57:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thread on Thu, 22 Jul 2004 10:57:48 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich erstelle mit _beginthreadex einen Thread.<br />
Als Threadfunktion übergeben ich eine statische memberfunktion meiner Klasse.<br />
_beginthreadex meldet keinen Fehler, der Thread startet jedoch nicht. Rufe ich dann WaitForSingleObject(HANDLE,INFINITE) auf fängt der Thread plötzlich das &quot;Laufen&quot;. CreateThread, AfxBeginThread, etc versachen alle das selbe Problem.</p>
<p>Weiß jemand Rat, ich hoffe doch ...</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565874</guid><dc:creator><![CDATA[Xaveri]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:57:48 GMT</pubDate></item><item><title><![CDATA[Reply to Thread on Thu, 22 Jul 2004 11:16:48 GMT]]></title><description><![CDATA[<p>probierst du das unter dem Debugger?</p>
<p>Es ist nicht garantiert, wann der Thread losläuft, und wenn du mit dem Debugger durchstepst, stimmt sowieso nix mehr.</p>
<p>Du kannst ihn aber mit einm &quot;Sleep()&quot; im Main thread die Chance geben, jetzt mal was zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565909</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Thu, 22 Jul 2004 11:16:48 GMT</pubDate></item><item><title><![CDATA[Reply to Thread on Thu, 22 Jul 2004 14:35:08 GMT]]></title><description><![CDATA[<p>Danke füe die Antwort.<br />
Aber das ist nicht das Problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566173</guid><dc:creator><![CDATA[Xaveri]]></dc:creator><pubDate>Thu, 22 Jul 2004 14:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to Thread on Thu, 22 Jul 2004 14:58:38 GMT]]></title><description><![CDATA[<p>moin meister ...</p>
<p>daran wirds wohl kaum liegen aber man weiß ja nie:</p>
<p>_beginthreadex:<br />
...<br />
initflag: Initial state of new thread (0 for running or CREATE_SUSPEND for suspended)<br />
...</p>
<p>Ansonsten gibts hier eins weiter unten ne Klasse funktioniert<br />
selbst probiert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>MfG<br />
RB</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566191</guid><dc:creator><![CDATA[RED-BARON]]></dc:creator><pubDate>Thu, 22 Jul 2004 14:58:38 GMT</pubDate></item></channel></rss>