Note that there are some explanatory texts on larger screens.

plurals
  1. PO.NET force COM objects release
    primarykey
    data
    text
    <p>I have an ASP.NET 2.0 application under IIS that has the functionnality of exporting some data to a software called HFM (Oracle Hyperion Financial Management). To perform that export, the .net application uses an API based on COM objects provided by the HFM client (the client is installed on the same machine that the server, etc.)</p> <p>My problem is that the API provides a method to connect to the HFM server but not to disconnect.<br> The documentation says that to disconnect, the application must call the method <strong>Marshal.ReleaseComObject()</strong> on each COM object created. But there are a lot of complex actions performed and I am not able to release all created object.<br> So my application doesn't disconnect.</p> <p>I've noticed that when I replace the ASP.NET application dll files (which seems to reinit the objects instanciated by .NET), the application automatically disconnects.</p> <p>I tried several times to call :</p> <pre><code>GC.Collect(); GC.WaitForPendingFinalizers(); </code></pre> <p>But the problem remains. I'm looking for a way to be sure that ANY object created, even COM objects are released. I tried with <strong>Marshal.FinalReleaseComObject()</strong> but it's not better.</p> <p>As I put a lock() on that section, there is always at most one user on that part so I can even use hardcore techniques to release the COM objects.</p> <p>Is there a way to know which object or at least the type of the object that has not been released ?</p> <p>Thanks for your help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload