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

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

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

Post by rajan_m » Fri Jul 03, 2015 3:32 pm

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.
Attachments
Error.jpg
Error.jpg (67.88 KiB) Viewed 1091 times
Last edited by rajan_m on Fri Jul 10, 2015 3:22 pm, edited 1 time in total.
Every exit is an entry somewhere else!

User avatar
tierra
Site Admin
Site Admin
Posts: 1343
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

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

Post by tierra » Sat Jul 04, 2015 3:01 pm

Have you tried running it through the debugger?

rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

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

Post by rajan_m » Fri Jul 10, 2015 3:22 pm

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?.
Every exit is an entry somewhere else!

User avatar
doublemax
Moderator
Moderator
Posts: 14954
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax » Fri Jul 10, 2015 4:34 pm

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?
Use the source, Luke!

Post Reply