|
-
Nov 26th, 2007, 12:04 PM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 2nd, 2007, 12:01 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|