HowTO: Call exposed method of an application level object?
Hi everyone....
I have created an AxtiveX DLL in VB. A refrence is made to it in the global.asa.
When the application_onstart fires, it calls .LogStart and .DBOpen. There
is also a .DBClose and .LogStop. How can I call the methods from an asp
page?
Thanks,
-Ben
Re: HowTO: Call exposed method of an application level object?
Don't do that!!
VB DLLs are apartment-threaded. Storing an apartment-threade object in an
Application variable will lock your entire site down to one thread. Don't
store apartment-threaded objects in Session variables either. Instead, store
the object's data in scalar variables and then retrieve the data and
reinstantiate your VB object on any page that needs it. You can use
free-threaded objects at Application or Session scope, but VB can't create
them.
Russell Jones
Sr. Web Development Editor
DevX.com
"Ben" <bdill@cinci.rr.com> wrote in message news:3a708482@news.devx.com...
>
> Hi everyone....
>
> I have created an AxtiveX DLL in VB. A refrence is made to it in the
global.asa.
> When the application_onstart fires, it calls .LogStart and .DBOpen.
There
> is also a .DBClose and .LogStop. How can I call the methods from an asp
> page?
>
> Thanks,
> -Ben