Activex Dll added in Component Services does not stop when using it in aspx

Posted on 2005-05-16
Last Modified: 2010-04-07
Hi experts,

  I have tried creating an Activex DLL project using VB6 with a simple hello function in it. After compiling, I registered it in Component Services. It works well when I use it in asp classic page, but when I call it inside I have noticed that the object in Component services does not stop and the number of objects running adds up when a new browser accessed the same function.  I have tried  GetObjectContext.SetComplete but no changes. Please help. Thanks.

           Public Function Hello(ByVal name As String) As String
                  Hello = Testing(name)
           End Function

in aspx:

            Dim testcom = CreateObject("TestCom.test")
            testcom = nothing
Question by:apinyaku
    LVL 5

    Expert Comment

    1. Do you created Dispose() method
    2. Is that your class implements IDisposable?

    LVL 96

    Accepted Solution

    Are you releasing your objects:  testcom = Nothing?  Are you releasing COM objects:  Marshal.ReleaseCOMObject(testcom)?


    Author Comment

    System.Runtime.InteropServices.Marshal.ReleaseComObject did it. Thank you very much!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now