-
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
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks