![]() |
|
#2
|
||||
|
||||
|
Make sure you are using the correct calling convention for your thread function. If you are using BeginThread, you cannot define the function as a STDCALL. BeginThread is basically a workaround for your thread function to use the delphi calling convention. My personal suggestion and preference for x86 is to use the standard WinAPI CreateThread and define your thread function as follows.
Function MyThreadFunction(p:Pointer):Cardinal; STDCALL; Begin //dostuff Result:=0; End;
__________________
"As the island of our knowledge grows, so does the shore of our ignorance." John Wheeler |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OllyDbg is not good at supporting breakpoints in multi-threading environment | BlackWhite | General Discussion | 6 | 08-10-2017 20:43 |
| Keygenning With Delphi: Useful Delphi Functions and Tips | chessgod101 | General Discussion | 5 | 01-05-2015 23:02 |
| Delphi Encryption Compendium v3.0 Problem | winndy | General Discussion | 1 | 02-18-2006 10:12 |
| Modifying Kernel Mode Driver for Hyper Threading | aldente | General Discussion | 8 | 08-13-2004 10:11 |