Hello everybody,
I think there's a mistake in the code with this UCOMIConnectionPointContainer stuff.
I guess it is is in Sub Dispose:
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
If cookie = -1 Then '!!! THINK it mst be: If cookie <> -1 then ...
icp.Unadvise(cookie)
Else
cookie = -1
End If
End If
End If
MyBase.Dispose(disposing)
End Sub
Since i don't know exactly what all this UCOMIConnectionPoint-ing means I am not sure if it's really a mistake.
Bye
D.