User forums > General (but related to Code::Blocks)

wxSmith Couldn't Add New Handler

<< < (3/3)

bezet:
Hello, I confirm that the same problem persists in March 2026 :
After adding a child window/frame using the wxSmith menu 'New Frame', I was unable to create/add any events.
Also components added to this frame return the same error "Couldn't Add New Handler" .
I looked at thevarious files to find any wrong path etc., without success.
Then I created another child frame in the same way, and there is no problem to create events!?

ollydbg:
Can you show us a step by step instructions? We need to reproduce this bug in our C::B. Unluckily, I don't know the steps.

Miguel Gimenez:
There are only two possible causes of this error:
- There is no // (*Handlers(FrameName) section in the dialog's include file
- An editor for the source file cannot be opened

See wxsEventsEditor::CreateNewFunction() for more information.

In the wxSmith menu there is a submenu (Configure wxSmith for current project) that may help

I would bet for an invalid file name.

bezet:
Hi, thanks to both for your replies. I'm afraid I can't reproduce the error !?

1) Here is what I did:
- create new Project -> wxWidgets project
(then I added a few components to the main Frame1)
- add a second frame using menu wxSmith -> Add wxFrame
-> second Frame2 which is a child of the first
(I added a few components to Frame2, among them a MathPlot which gives some heartache)
...then I noticed that Frame2 is destroyed when I close it, but I only want to hide it, so it can be reopened
-> I tried to create an event OnClose (using the Component Properties/Events window) , in order to overwrite with a 'simple' Hide()
...but this results in the error "cannot create event", same for components inside Frame2,
but everything is fine for Frame1,
and for a third frame which I created same way as Frame2 !
 
2) reproducing the error:
I have deleted the misbehaving Frame2,
but I found and reinstalled an old version of my program (saved 10 days ago), with Frame2 and Mathplot in it: the problem has disappeared !?

3) submenu "Configure wxSmith for current project"
nothing special inside, I made no changes:
- "automatically loaded ressources" is empty,
- Main resource = Frame1,
- "callwxXmlResource" is ticked
- "'only when necessary' is ticked

Thanks again, and in advance, for any hints!

Navigation

[0] Message Index

[*] Previous page

Go to full version