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)
Dim testcom = CreateObject("TestCom.test")
testcom = nothing