>...
Ok, this seems to work, thanks :-)
I might get in trouble later when adding several other controls to the ocx,
but som household code might fix it. I still dont get why GC should have any
buisness collecting a reference counted object allocated in my ocx without
its knowledge, but hey, what do I know.
Thanks
Gary Chang[MSFT] - 28 Jan 2005 05:33 GMT
>I might get in trouble later when adding several other controls to the ocx,
>but som household code might fix it. I still dont get why GC should have any
>buisness collecting a reference counted object allocated in my ocx without
>its knowledge, but hey, what do I know.
Next time if you get the similar problem which involved the unmanaged
object, I suggest you can also post that problem to the newsgroup
dotnet.framework.interop.
Good Luck!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ??C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.