[m-rev.] diff: remove call to MessageBox in gc

Peter Ross peter.ross at miscrit.be
Thu May 17 22:00:11 AEST 2001


Hi,


===================================================================


Estimated hours taken: 0.25
Branches: main

boehm_gc/misc.c:
    Remove a debugging call to MessageBoxA and replace it with
    GC_err_printf1.  This avoids a link error where MessageBoxA cannot
    be found.


Index: misc.c
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/misc.c,v
retrieving revision 1.12
diff -u -r1.12 misc.c
--- misc.c	2001/04/10 13:20:18	1.12
+++ misc.c	2001/05/17 11:51:29
@@ -821,11 +821,9 @@
 void GC_abort(msg)
 GC_CONST char * msg;
 {
+    GC_err_printf1("%s\n", msg);
 #   if defined(MSWIN32)
-      (void) MessageBoxA(NULL, msg, "Fatal error in gc", MB_ICONERROR|MB_OK);
       DebugBreak();
-#   else
-      GC_err_printf1("%s\n", msg);
 #   endif
     if (GETENV("GC_LOOP_ON_ABORT") != NULL) {
 	    /* In many cases it's easier to debug a running process.	*/

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list