< prev index next >

src/os/windows/vm/vmError_windows.cpp

Print this page

        

@@ -27,14 +27,15 @@
 #include "runtime/os.hpp"
 #include "runtime/thread.hpp"
 #include "utilities/vmError.hpp"
 
 
-void VMError::show_message_box(char *buf, int buflen) {
+void VMError::show_message_box(char *buf, int buflen, int id, const char* message, const char* detail_fmt,
+                               va_list detail_args, address pc, const char* filename, int lineno) {
   bool yes;
   do {
-    error_string(buf, buflen);
+    error_string(buf, buflen, id, message, detail_fmt, detail_args, pc, filename, lineno);
     int len = (int)strlen(buf);
     char *p = &buf[len];
 
     jio_snprintf(p, buflen - len,
                "\n\n"

@@ -68,13 +69,12 @@
   return NULL;
 }
 
 LONG WINAPI crash_handler(struct _EXCEPTION_POINTERS* exceptionInfo) {
   DWORD exception_code = exceptionInfo->ExceptionRecord->ExceptionCode;
-  VMError err(NULL, exception_code, NULL,
-                exceptionInfo->ExceptionRecord, exceptionInfo->ContextRecord);
-  err.report_and_die();
+  VMError::report_and_die(NULL, exception_code, NULL, exceptionInfo->ExceptionRecord,
+                          exceptionInfo->ContextRecord);
   return EXCEPTION_CONTINUE_SEARCH;
 }
 
 void VMError::reset_signal_handlers() {
   SetUnhandledExceptionFilter(crash_handler);
< prev index next >