Problem migrating addin from 2003 to 2007
Jon Rizzo wrote:
I am releasing both the item and the inspector in a loop to ensure that all
references are released:
Do
refsLeft =
System.Runtime.InteropServices.Marshal.ReleaseCom Object(obj)
Loop While (refsLeft 0)
I hope you have a safety valve such as a counter set to some
comfortably big number for example, so that the loop doesn't get stuck
in perpetuity. Maybe even every 5 loops do a DoEvents.
-mhd
|