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

This forum is meant for questions and discussions about the X# language and tools
Post Reply
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

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

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

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

Post 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...
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

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

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

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

Post by Chris »

Hi Leigh,

Yes, almost certainly this was it.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply