Exception of type 'VO.WCError' was thrown
Posted: Wed Oct 19, 2022 1:39 am
Hi All,
I have this rather generic error when my X# code, ported from VO, tries to create a SplitWindow.
Here is the top bit of the call stack leading to the error and back to my code.
XSharp.Error
HResult=0x80131500
Message=Exception of type 'VO.WCError' was thrown.
Source=XSharp.RT
StackTrace:
__LOADSPLITWINDOWDLL (Line: 0)
__SPLITVIEW:.CTOR (Line: 0)
RUNTIMEMETHODHANDLE:INVOKEMETHOD (Line: 0)
RUNTIMECONSTRUCTORINFO:INVOKE (Line: 0)
_CREATEINSTANCE (Line: 0)
CREATEINSTANCE (Line: 0)
SPLITWINDOW:.CTOR (Line: 0)
MANAGEORDERS:.CTOR (Line: 2222)
My code at this point looks like this:
// initialize the window
SUPER(oOwner, TRUE, FALSE, SPLIT_VERTALIGN)
In this case SUPER is a VO.SplitWindow that it is trying to construct. The parameters seem sensible as far as I can tell using the Object Browser.
I have looked at the details of the exception and the only properties that may provide a clue seem to be:
Description "Cannot load library: CATO3SPL.DLL" String
GenCodeText "Unknown GenCode" String
I did find that CATO3SPL.DLL among the X# runtime code but it does not seem to be something I can use in .NET.
Any ideas on what I can try?
Best Regards,
John Bonnett
I have this rather generic error when my X# code, ported from VO, tries to create a SplitWindow.
Here is the top bit of the call stack leading to the error and back to my code.
XSharp.Error
HResult=0x80131500
Message=Exception of type 'VO.WCError' was thrown.
Source=XSharp.RT
StackTrace:
__LOADSPLITWINDOWDLL (Line: 0)
__SPLITVIEW:.CTOR (Line: 0)
RUNTIMEMETHODHANDLE:INVOKEMETHOD (Line: 0)
RUNTIMECONSTRUCTORINFO:INVOKE (Line: 0)
_CREATEINSTANCE (Line: 0)
CREATEINSTANCE (Line: 0)
SPLITWINDOW:.CTOR (Line: 0)
MANAGEORDERS:.CTOR (Line: 2222)
My code at this point looks like this:
// initialize the window
SUPER(oOwner, TRUE, FALSE, SPLIT_VERTALIGN)
In this case SUPER is a VO.SplitWindow that it is trying to construct. The parameters seem sensible as far as I can tell using the Object Browser.
I have looked at the details of the exception and the only properties that may provide a clue seem to be:
Description "Cannot load library: CATO3SPL.DLL" String
GenCodeText "Unknown GenCode" String
I did find that CATO3SPL.DLL among the X# runtime code but it does not seem to be something I can use in .NET.
Any ideas on what I can try?
Best Regards,
John Bonnett