In VB.NET does anything bad happen if I call GetComObject many times never
calling ReleaseComObject?
Public Sub ReleaseComObject(ByVal o As Object)
Dim Count As Integer
Do
Count = Marshal.ReleaseComObject(o)
Loop While Count > 0
End Sub
Public Function GetComObject() As tom.ITextDocument
Dim o As Object
SendMessage(Handle, RtfApi.EM_GETOLEINTERFACE, 0, o)
GetComObject = CType(o, tom.ITextDocument)
End Function
I first posted this someplace else but then thought this might be a more
appropriate NG. Is it?