fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: VO.WCError runtime error after adding button to existing VO Dialog Window

VO.WCError runtime error after adding button to existing VO Dialog Window 2 weeks 2 days ago #13814

  leighproman's Avatar Topic Author leighproman Offline Posts: 39
Have tried adding a pushbutton to an existing VO Dialog window but at runtime it is giving a VO.WCError error.
If I remove the pushbutton again it works fine.
Exception of type 'VO.WCError' was thrown.
Callstack:
   at VO.WCError..ctor(__Usual[] Xs$Args)
   at VO.Control.Create(__Usual[] Xs$Args)
   at VO.TextControl.Create(__Usual[] Xs$Args)
   at VO.Control.Handle(__Usual[] Xs$Args)
   at VOGUIClasses.Functions.__WCRegisterControl(Control oControl)
   at VO.Control..ctor(__Usual[] Xs$Args)
   at VO.TextControl..ctor(__Usual[] Xs$Args)
   at VO.Button..ctor(__Usual[] Xs$Args)
   at VO.PushButton..ctor(__Usual[] Xs$Args)
   at STATRUNTYPE2..ctor(__Usual[] Xs$Args)
Any ideas what the issue is?
Thanks

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

VO.WCError runtime error after adding button to existing VO Dialog Window 2 weeks 2 days ago #13815

  Chris's Avatar Chris Offline Posts: 1753
Hi Leigh,

Can you please provide as much more info as you can? Like what is the name of the button, if it happens with different names, different controls than buttons etc. Anything that might help bringing some idea...
XSharp Development Team
chris(at)xsharp.eu

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

VO.WCError runtime error after adding button to existing VO Dialog Window 2 weeks 2 days ago #13816

  leighproman's Avatar Topic Author leighproman Offline Posts: 39
I tried various names and just the default of PushButton1.
It also failed with FixedText.

But I just noticed there was an extra .rc file from the original conversion for the prg file, as well as the window .rc file.
I've removed the old .rc file and now it seems ok.
Could that have caused the problem?
This is the first change to that window since that original conversion.

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

VO.WCError runtime error after adding button to existing VO Dialog Window 2 weeks 2 days ago #13820

  Chris's Avatar Chris Offline Posts: 1753
Hi Leigh,

Yes, almost certainly this was it.
XSharp Development Team
chris(at)xsharp.eu

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

  • Page:
  • 1