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: Björn Eiríksson <bjorn at einhugur dot com>
Date: Mon, 12 Dec 2005 18:35:37 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20C46571-78E8-4774-A7B4-D92B27F12B9B at einhugur dot com> <439DB567 dot 6070803 at realsoftware dot com>

On 12.12.2005, at 17:37 PM, Aaron Ballman wrote:

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

So basically what I need to do here to be safe is to load the UXTheme if it has not been loaded in the Control_Init function, and reference count it so that it does not get unloaded until there is no control left on the screen.

Is this correct understanding ?

Thanks

--
______________________________________________________________________
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>