HowTO: Call exposed method of an application level object?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: HowTO: Call exposed method of an application level object?

Hybrid View

  1. #1
    Ben Guest

    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

  2. #2
    Russell Jones Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center