[Frage] CreateThread() vorraussetzung?
-
ich habe ein programm gecodet das unter anderem multithreading beherscht bzw anwendet codet und testet auf win7. hab mein programm auch auf einem komplett neuen windows xp sp1 getested wo auch alles einwandfrei funktioniert bis auf das multithreading und jetzt meine frage, brauch ich für den CreateThread() noch irg was auf dem os? eig ja nicht weils ja ne api ist oder?
-
CreateThread funktioniert selbstverständlich unter XP.
-
irg wie komisch^^ ist ne art multidownloader der in jedem thread ne file downloadet mit dem winsocks aber daran kanns auch nicht liegen
-
Rufst du innerhalb der Threadproc Funktionen der CRT auf? Wenn dies der Fall sein sollte, nutze statt CreateThread _beginthreadex.
Siehe auch die Doku zu CreateThread.MSDN schrieb:
A thread in an executable that calls the C run-time library (CRT) should use the _beginthreadex and _endthreadex functions for thread management rather than CreateThread and ExitThread; this requires the use of the multi-threaded version of the CRT. If a thread created using CreateThread calls the CRT, the CRT may terminate the process in low-memory conditions.
-
aber auf win7 hauts ja auch hin
-
Es gibt keine Voraussetzungen für CreateThread...