![]() |
|
|
|
#1
|
|||
|
|||
|
Yes, confict/bug in DllEntryPoint function of your Delphi code.
When a thread created, system will call DllEntryPoint function with param DLL_THREAD_ATTACHED |
| The Following User Says Thank You to TQN For This Useful Post: | ||
phroyt (05-03-2020) | ||
|
#2
|
|||
|
|||
|
That's the point.
I always thought it worked like this. But unknown code are sent Code:
DLLInit: 0x00000001 => DLL_PROCESS_ATTACH DLLInit: 0x6CBE2728 DLLInit: 0x6D992728 DLLInit: 0x064DBC38 Code:
DLL_PROCESS_ATTACH = 1;
{$EXTERNALSYM DLL_PROCESS_ATTACH}
DLL_THREAD_ATTACH = 2;
{$EXTERNALSYM DLL_THREAD_ATTACH}
DLL_THREAD_DETACH = 3;
{$EXTERNALSYM DLL_THREAD_DETACH}
DLL_PROCESS_DETACH = 0;
{$EXTERNALSYM DLL_PROCESS_DETACH}
Code:
begin //DLLProc := TDLLProc(@DllInit); DllInit(DLL_PROCESS_ATTACH); end. Like you said, probably a DLLProc erratic behavior. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |