Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 06.05.05 14:35 
Hallo !
Ich habe jetzt schon öfters hier im Forum mitbekommen, dass man die Funktion createthread(); nicht verwenden sollte um eine Prozedur als Thread zu starten.
Wieso eigendlich nicht ?

danke,
Matze


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Fr 06.05.2005 um 15:32

_________________
In the beginning was the word.
And the word was content-type: text/plain.
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Fr 06.05.05 14:43 
es gibt keinen grund warum es schlecht sein sollte.

Luckie favorisiert BeginThread,du kannst aber auch CreateThread verwenden wenn du die prozedur als STDCALL definierst
aber auch das muss man nicht zwingend

im endeffekt ist BeginThread auch nur nen wrapper zu CreateThread

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 06.05.05 14:45 
Du als Moderator kennst doch sicherlich dieses "nette" Topic über Assarbads Keyloggertutorial. Da wo Assarbad und uall sich etwas gezankt haben.

Luckie meinte damals "man sollte CreateThread" nicht verwenden. Er hat dann ein seperates Topic aufgemacht, das dass besprechen sollte. Mehr als eine Antwort kam aber nicht bei raus: www.delphi-forum.de/viewtopic.php?t=36610 ;)
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Fr 06.05.05 14:48 
oha ich hatte es gar net gelesen, wie dem auch sei ich benutze es weiter ;>

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 06.05.05 14:53 
Ich hab mal gehört, CreateThread wäre mit der VCL teilweise inkompatibel, und man sollte TThread nehmen.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 06.05.05 15:00 
ich hatte mit createthread bis jetzt noch keinerlei probleme :?
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 06.05.05 15:11 
danke für eure hilfe !
das topic von luckie kannte ich noch nicht.

_________________
In the beginning was the word.
And the word was content-type: text/plain.