xsharp.eu • VO.WCError runtime error after adding button to existing VO Dialog Window
Page 1 of 1

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

Posted: Fri Mar 20, 2020 4:12 pm
by leighproman
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.

Code: Select all

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

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

Posted: Fri Mar 20, 2020 5:21 pm
by Chris
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...

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

Posted: Fri Mar 20, 2020 5:55 pm
by leighproman
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.

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

Posted: Fri Mar 20, 2020 10:58 pm
by Chris
Hi Leigh,

Yes, almost certainly this was it.