From: Tito D. C. <ti...@da...> - 2007-11-18 12:21:14
|
On Sat, 2007-11-17 at 13:41 -0500, Gregory Smith wrote: > No good. (One of) the crash(es) happens at ShapesView.cpp:1545, where > f_view is random uninitialized garbage, so dereferencing it crashes. > Fixes to FrameView aren't going to help since it doesn't exist yet. This looks to me like a wx bug. Why is that event handler fired at that time? It shouldn't be. > You could initialize f_view in the ShapesView constructor, and check > each time you use the f_view->GetFrame() construct to make sure f_view > has been created, if you don't like my hack of just setting up f_view > before the widgets that need it to process their events. I'll revert to your hack, it's a simpler one. But I'll put a FIXME near it, just in case things change in the future. Bye Tito -- Physics is reverse engineering |