Results 1 to 2 of 2

Thread: Singleton ActiveX Exe access from application and WEB?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    308

    Singleton ActiveX Exe access from application and WEB?

    Hi,

    simple question if you would be so kind?

    I've singleton ActiveX exe whose primary class is instatiated by another ActiveX exe:

    [VBCode]

    Dim objX as MyHubb.cApp
    Set objX = new MyHubb.cApp

    [/VBCode]

    I then also create a hook to the same object from a web page (server side ASP) but the Server Side ASP is creating a new running instance of the MyHubb.exe and does NOT hook to the running instance created in the other ActiveX Exe ?

    I realise the users creating these objects are different and maybe this is the issue, but if the object is in memory and is singleton, whats the issue ??

    Any help muchly appreciated.

    Cheers.

    Chubby.

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Singleton ActiveX Exe access from application and WEB?

    I'm not sure how you're creating this "singleton" but there really isn't any such thing in VB6. You can get some of this behavior in a MultiUse ActiveX EXE, and some more by doing some very advanced fiddling.

    But various versions of IIS attempted great and greater process isolation that may interfere with what you're trying to do. In some IIS versions there are options to reduce this isolation but generally it isn't advised.

    You'd probably be better off building a COM+ package, but that's another lengthy subject.

    It may be possible your problems stem from using New instead of CreateObject(). These can have different results depending on the relationship between the client and the class server and various instancing properties.

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