Page 1 of 1

Can't create dialog using memory template - means what?

Posted: Fri Jul 03, 2015 3:32 pm
by rajan_m
Hi,

Getting error message on closing my application.(see attachment)

Message dialogs are not appearing some times in my application, Is it related to this issue?.

Stuck without any ideas to proceed. kindly help.

Re: Can't create dialog using memory template - means what?

Posted: Sat Jul 04, 2015 3:01 pm
by tierra
Have you tried running it through the debugger?

Re: Can't create dialog using memory template - means what?

Posted: Fri Jul 10, 2015 3:22 pm
by rajan_m
Grep the source (wxWidgets) and found if ''CreateDialogIndirect()'' call fails, then error message is logged.
The error message popup on closing the application and not shown at the time of issue.

Any Reason why it might happen?.

Re: Can't create dialog using memory template - means what?

Posted: Fri Jul 10, 2015 4:34 pm
by doublemax
This is definitely a strange error, there must be something fundamentally wrong. Is this a C++ application? I'm asking because when i search for these error message, i see many Python related posts.

As a wild guess, i think you may use some wxWidgets classes before wxWidgets itself is initialized.

Is there anything special regarding the "anatomy" of your application? I.e. how does your wxApp::OnInit() look like? Can you provide a minimal, compilable sample that shows the problem?

Also, which wxWidgets version are you using?