Hello it seems the REALbasic 2005 IDE on Windows gets destabilized if
a plugin has
BOOL WINAPI DLLMain(HINSTANCE hInst,DWORD wDataSeg,LPVOID lpvReserved)
{
switch(wDataSeg)
{
case DLL_PROCESS_ATTACH:
// Load the XP Themes DLL
gThemeDll = LoadLibrary("UxTheme.dll");
return 1;
case DLL_PROCESS_DETACH:
if (gThemeDll != NULL)
{
FreeLibrary(gThemeDll);
}
return 0;
default:
return 1;
}
}
In built application it works perfect.
If I add OutputDebugString to it then REALbasic stops crashing on Launch
Is this something I am not supposed to or may not do ? (to have
DLLMain like that to initialize and finalize things ?)
If I remove the DLLMain then RB stops crashing.
--
______________________________________________________________________
Björn Eiríksson bjorn at einhugur dot com
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 50 countries world wide.
______________________________________________________________________
For support: support at einhugur dot com
To post on the maillist: einhugur at yahoogroups dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|