COMException Catastrophic Failure
Hi,
I've created a simple C++ MFC Active control in Vis Studio.NET.
I've also created a simple C# application that references the OCX.
/***************************
TestLib.TestClass ts = new TestLib.TestClass();
try
{
ts.Test();
}
catch(Exception Ex)
{
System.Windows.Forms.MessageBox.Show(Ex.Message, Ex.GetType().ToString());
}
***************************/
I can instantiate the OCX no problem but when I call a function
in the OCX I get the exception
'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Catastrophic failure
The ActiveX control has absolutely no additional code other than
that created by VS.NET.
Thanks,
James.
|