1
Automation Interface, Add-Ins and Tools / ReportAvOnComRelease- Exception after closing EA
« on: November 07, 2012, 04:01:23 am »
Hi,
i get following exception(in Debug Mode of Visual Studio2010 c# plugin)
by closing EA9.3:
An exception was caught but handled while releasing a COM interface pointer through Marshal.Release or Marshal.ReleaseComObject or implicitly after the corresponding RuntimeCallableWrapper was garbage collected. This is the result of a user refcount error or other problem with a COM object's Release. Make sure refcounts are managed properly. The COM interface pointer's original vtable pointer was 0x1766ef8. While these types of exceptions are caught by the CLR, they can still lead to corruption and data loss so if possible the issue causing the exception should be addressed
I thought this code may be the problem:
public void EA_Disconnect()
{
GC.Collect();
GC.WaitForPendingFinalizers();
}
I also tried to comment out both GC-calls. Same error.
Whats the problem ?
I don`t want to just disable some MDA-Assistent checkboxes, to get away the error !!!
interesting
I just tested it with EA7.1 -> no exception
EA9.3 -> exception
No code changes done. Anything im not allowed to do in EA9.3 on quiting ?
i get following exception(in Debug Mode of Visual Studio2010 c# plugin)
by closing EA9.3:
An exception was caught but handled while releasing a COM interface pointer through Marshal.Release or Marshal.ReleaseComObject or implicitly after the corresponding RuntimeCallableWrapper was garbage collected. This is the result of a user refcount error or other problem with a COM object's Release. Make sure refcounts are managed properly. The COM interface pointer's original vtable pointer was 0x1766ef8. While these types of exceptions are caught by the CLR, they can still lead to corruption and data loss so if possible the issue causing the exception should be addressed
I thought this code may be the problem:
public void EA_Disconnect()
{
GC.Collect();
GC.WaitForPendingFinalizers();
}
I also tried to comment out both GC-calls. Same error.
Whats the problem ?
I don`t want to just disable some MDA-Assistent checkboxes, to get away the error !!!
interesting
I just tested it with EA7.1 -> no exception
EA9.3 -> exception
No code changes done. Anything im not allowed to do in EA9.3 on quiting ?