Board index » cppbuilder » Indy 9 SysLog in a DLL
Indy 9 SysLog in a DLL
2006-03-26 04:41:26 PM
I'm trying to wrap the Indy 9 SysLog Client into a DLL. I've got it
basically working, but my application hangs when it tries to free the DLL.
The DLL is loaded with "hDLL = LoadLibrary("CTSsyslogClient.dll");" and
freed with "FreeLibrary(hDLL);".
If I comment out the "FreeLibrary(hDLL);" is does not hang, and CodeGuard
doesn't throw up any errors. The handle is not corrupted when getting to
free, so it isn't that.
Also, I've tried not setting the TIdSysLog to active, so its instantiated
but not used, and TIdSysLogMessage are constructed, but dropped (as
TIdSysLog is not active), In this scenario freeing the DLL does not hang
So it seems to be connected to sending messages to TIdSysLog which
eventually stops the DLL from unloading.
Does anyone have any ideas or clues?