View Single Post
  #7  
Old May 13th 08, 05:59 PM posted to microsoft.public.outlook.program_forms
-mhd
external usenet poster
 
Posts: 4
Default 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
Ads
 

Compare - Wills - MPAA - Buy Anything On eBay - Mortgage Calculator