STAThread has no effect
Thanks but when I add the STAThread attribute it has no effect. I keep getting the 'System.Runtime.InteropServices.COMException' in mscorlib.dll.
I think that the OCX module is written in VB 6 and is somehow not completely compatible with VB.NET.
Is there a workaround...
Hi,
I have a third-party OCX library (SmRemLib) to remote control a video software package using TCP/IP. Every time when I call a method I get An unhandled exception of type 'System.NullReferenceException' occurred in microsoft.visualbasic.dll
Here is to code I use (VB.NET 2003):
Imports...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.