General information
Category:
COM/DCOM and OLE Automation
Title:
Problems releasing com+ objects
We're writing an asp.net application that uses our foxpro com+ objects. I'm using objName = nothing to release them in the asp.net page. I am also releasing them as soon as possible.
example ( in asp.net) (all use of objects are similiar)
rs = createobject("adodb.recorset")
obj = createobject("MyDLL.MyClass")
rs = obj.MyFunction(parameter list)
obj = nothing 'release right after processing
When I close the application I look at the component services, sometimes the objects are still activated.
Is there a way that I can write a destroy method within the object to destroy itself and insure the release of the object.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only