CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Persistent Data

  1. #1
    Join Date
    Apr 1999
    Location
    Sydney, Australia
    Posts
    40

    Persistent Data

    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


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Persistent Data

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured