[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2005-05-16
Medium Priority
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 asp.net 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

Expert Comment

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

LVL 96

Accepted Solution

Bob Learned earned 200 total points
ID: 14011394
Are you releasing your objects:  testcom = Nothing?  Are you releasing COM objects:  Marshal.ReleaseCOMObject(testcom)?


Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 10 hours left to enroll

873 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