Click to See Complete Forum and Search --> : Persistent Data


David Stephen
December 5th, 1999, 09:57 PM
I need to make an ActiveX dll or exe that can contain some session information. This is to remain alive all the time for my app to query if a user exists or not.
I have done this with an activeX exe that pops up a form and the form stays alive, but my problem is that I am developing for an IIS application where the dll can not load up the exe in this manner, it can not create the object.

Is there a way to have a dll remain alive indefinately with persistent data?

Thanks

Ravi Kiran
December 6th, 1999, 04:52 AM
Dll remaining alive may not be such a good idea, unless it is a system dll. One of the COM specs is that the components unload when no client is connected to them.
If you still want it, then on the first instance of your server, it can create a client, which will keep the reference of the server.. server will not unload because atleast one client is keeping the ref, and the client will not exit because it is the server who created it.

This is called Circular References, and is usually considered "Dangerous"., So, know what you are doing.

RK