Logo Search packages:      
Sourcecode: scantool version File versions  Download package

error_handlers.c

#include <string.h>
#include "globals.h"
#include "error_handlers.h"


void fatal_error(char *msg)
{
   char temp_buf[512];

   if (datafile != NULL)
      unload_datafile(datafile);

   sprintf(temp_buf, "\nERROR: %s", msg);
   strcat(temp_buf, "\n\nPlease contact ScanTool.net via our website at http://www.ScanTool.net/support");
   strcat(temp_buf, "\nInclude the following information:");
   strcat(temp_buf, "\n\t- Exact error message");
   strcat(temp_buf, "\n\t- CPU type/speed, i.e. \"Pentium 100Mhz\"");
   strcat(temp_buf, "\n\t- OS, i.e. \"Windows 95\"");
   strcat(temp_buf, "\n\t- Total amount of RAM installed, i.e. \"4Mb\"\n\n");
   allegro_message(temp_buf);
   
   exit(EXIT_FAILURE);
}

Generated by  Doxygen 1.6.0   Back to index