realbasic-plugins
[Top] [All Lists]

Adding DLLMain destabilizes the launch of REALbasic 2005 Windows IDE

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Adding DLLMain destabilizes the launch of REALbasic 2005 Windows IDE
From: Björn Eiríksson <bjorn at einhugur dot com>
Date: Mon, 12 Dec 2005 17:33:10 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
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>


<Prev in Thread] Current Thread [Next in Thread>