realbasic-plugins
[Top] [All Lists]

Re: Adding DLLMain destabilizes the launch of REALbasic 2005 Windows IDE

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Adding DLLMain destabilizes the launch of REALbasic 2005 Windows IDE
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Mon, 12 Dec 2005 11:37:43 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20C46571-78E8-4774-A7B4-D92B27F12B9B at einhugur dot com>
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.

Yup, you need to read the docs for DllMain (on MSDN) for this little tidbit...

"The entry-point function should perform only simple initialization or termination tasks. It must not call the LoadLibrary or LoadLibraryEx function (or a function that calls these functions), because this may create dependency loops in the DLL load order. This can result in a DLL being used before the system has executed its initialization code. Similarly, the entry-point function must not call the FreeLibrary function (or a function that calls FreeLibrary) during process termination, because this can result in a DLL being used after the system has executed its termination code."

~Aaron
_______________________________________________
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>