Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement