Page 1 of 1

how can I keep a dll resident in memory?

Posted: Thu Apr 01, 2010 7:46 pm
by sfoxover
Hi,

Is there any way to keep a dll or plug-in resident in memory for the duration of the install. I have an exported function call that I run as soon as the installer loads. I then want to call the dll again after I insert a custom dialog. I have a lot of data persisted in the dll that I do not want to convert into a format that can be persisted in the InstallAware script. Is there any way to keep this dll alive for the entire install session?

Regards

Steve

Re: how can I keep a dll resident in memory?

Posted: Thu Apr 01, 2010 11:00 pm
by CandiceJones
Please do not cross post the same topic in multiple forums.

Re: how can I keep a dll resident in memory?

Posted: Mon Apr 19, 2010 12:31 pm
by dunion
Other than using hooks (you can look that up) you might try using a singleton COM object built as a dll and you can run it as an executable from the first program, if noone calls a deref on the COM object it will stay in memory, you can just start program 2 before you end program one, etc.