[wx-dev] #9565: gtk_frame_delete_callback() fails to catch C++ exceptions.

wxTrac noreply at wxsite.net
Thu Jun 12 02:27:20 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9565>

#9565: gtk_frame_delete_callback() fails to catch C++ exceptions.
---------------------------------------------------+------------------------
 Reporter:  loafier                                |       Owner:         
     Type:  defect                                 |      Status:  new    
 Priority:  normal                                 |   Milestone:         
Component:  wxGTK                                  |     Version:  2.9-svn
 Keywords:  exceptions, gtk_frame_delete_callback  |   Blockedby:         
    Patch:  1                                      |    Blocking:         
---------------------------------------------------+------------------------
 gtk_frame_delete_callback() in src/gtk/toplevel.cpp calls the
 wxWindowBase::Close() method of the window. Close() uses ProcessEvent()
 instead of SafelyProcessEvent(), so exceptions thrown inside of
 wxEVT_CLOSE_WINDOW event handlers cause the program to terminate, as
 exceptions may not propagate through GTK's C language layers.

 The included patch modifies gtk_frame_delete_callback() to send the event
 safely to catch exceptions.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9565>


More information about the wx-dev mailing list