Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21898/src/gui

Modified Files:
        wxMainFrame.cpp 
Log Message:
implemented crash menu command (for crash report generation testing)

Index: wxMainFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMainFrame.cpp,v
retrieving revision 1.180
retrieving revision 1.181
diff -b -u -2 -r1.180 -r1.181
--- wxMainFrame.cpp     25 Dec 2003 19:33:03 -0000      1.180
+++ wxMainFrame.cpp     7 Apr 2004 23:00:33 -0000       1.181
@@ -68,5 +68,6 @@
 {
    WXMENU_DEBUG_WIZARD = WXMENU_DEBUG_BEGIN + 1,
-   WXMENU_DEBUG_TOGGLE_LOG
+   WXMENU_DEBUG_TOGGLE_LOG,
+   WXMENU_DEBUG_CRASH
 };
 
@@ -616,4 +617,5 @@
    menuDebug->AppendCheckItem(WXMENU_DEBUG_TOGGLE_LOG,
                               _T("Toggle &debug logging\tCtrl-Alt-D"));
+   menuDebug->Append(WXMENU_DEBUG_CRASH, _T("Provoke a c&rash"));
    GetMenuBar()->Append(menuDebug, _T("&Debug"));
 #endif // debug
@@ -1038,4 +1040,8 @@
             break;
 
+         case WXMENU_DEBUG_CRASH:
+            *(char *)17 = '!';
+            break;
+
          default:
             FAIL_MSG( _T("unknown debug menu command?") );



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to