Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv27491/src/gui

Modified Files:
        wxMApp.cpp 
Log Message:
no changes

Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.278
retrieving revision 1.279
diff -b -u -2 -r1.278 -r1.279
--- wxMApp.cpp  27 Sep 2003 23:15:51 -0000      1.278
+++ wxMApp.cpp  1 Oct 2003 22:03:29 -0000       1.279
@@ -278,4 +278,35 @@
 };
 
+#if 0 // def OS_WIN
+
+static struct WatchDog
+{
+   WatchDog()
+   {
+      HANDLE hThread = ::CreateThread(NULL, 0, &WatchDog::Run, 0, 0, NULL);
+      if ( hThread )
+      {
+         ::CloseHandle(hThread);
+      }
+   }
+
+   static DWORD WINAPI Run(void *)
+   {
+      HANDLE hEvent = ::CreateEvent(NULL, FALSE, FALSE, _T("Mahogany_Die"));
+      if ( !hEvent )
+         return (DWORD)-1;
+
+      if ( ::WaitForSingleObject(hEvent, INFINITE) == WAIT_OBJECT_0 )
+      {
+         // crash
+         int *p = 0;
+         *p = 17;
+      }
+
+      return 0;
+   }
+} g_watchDog;
+#endif // OS_WIN
+
 // ----------------------------------------------------------------------------
 // global vars



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to