Exception of type 'VO.WCError' was thrown

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
JohnBonnett88
Posts: 45
Joined: Mon Mar 07, 2022 12:34 am

Exception of type 'VO.WCError' was thrown

Post by JohnBonnett88 »

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
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Exception of type 'VO.WCError' was thrown

Post by Chris »

HI John,

You just need to copy all the CATO*.dll files from your VOBin folder, to the folder where you have your X# exe. You must not need to add them as references (as they are regular windows dlls, not .Net ones), just have them there and will be automatically loaded when needed.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
JohnBonnett88
Posts: 45
Joined: Mon Mar 07, 2022 12:34 am

Exception of type 'VO.WCError' was thrown

Post by JohnBonnett88 »

Thanks again Chris,
You really are a helpful guy! I tried adding that DLL as a reference and it told me it was the wrong sort. I had forgotten it could be an old DLL loaded manually. Making those CATO*.DLLs available got things going for me and resolved quite a few issues.
Best Regards,
John
Post Reply