Where is the chm manual page about creating wx object in stack and frame? Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
User avatar
JohnKnow
Knows some wx things
Knows some wx things
Posts: 41
Joined: Tue Aug 31, 2021 4:14 am

Where is the chm manual page about creating wx object in stack and frame?

Post by JohnKnow »

Hello,
I have ever seen a chm manual page about creating wx (window/frame) object in stack and heap, and how/when to delete them. I remember that it suggests creating wx (window) objects in heap, don't do it in stack.
It starts with an introduction about precompiled header inclusion. (Not "Hello World Example")
But I can't find it today.

I'm seeking it because I encountered a related issue.
I created a wx event handler, and create a local event variable, then use this variable call this handler again in this handler.
Thus I experienced a stack corrupt, gdb can't trace stack frame correctly (but the program is stil running fine.)


Does anyone know where is such page?
No, I know everything.
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Where is the chm manual page about creating wx object in stack and frame?

Post by doublemax »

Do you mean this one? https://docs.wxwidgets.org/trunk/page_m ... tform.html

(Based on your hints, i just searched for "precompiled")
Use the source, Luke!
User avatar
JohnKnow
Knows some wx things
Knows some wx things
Posts: 41
Joined: Tue Aug 31, 2021 4:14 am

Re: Where is the chm manual page about creating wx object in stack and frame?

Post by JohnKnow »

thank you, doublemax,
that's it!.
No, I know everything.
Post Reply