Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

Exception of type 'VO.WCError' was thrown 19 Oct 2022 03:39 #24213

  • JohnBonnett88
  • JohnBonnett88's Avatar
  • Topic Author


  • Posts: 40
  • 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

    Please Log in or Create an account to join the conversation.

    Exception of type 'VO.WCError' was thrown 19 Oct 2022 07:22 #24214

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • HI John,

    You just need to copy all the CATO*.dll files from your VO\Bin 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.
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Exception of type 'VO.WCError' was thrown 20 Oct 2022 02:07 #24220

    • JohnBonnett88
    • JohnBonnett88's Avatar
    • Topic Author


  • Posts: 40
  • 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

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1