Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Application Error popup

Application Error popup

Scheduled Pinned Locked Moved System Admin
performancehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 6113323
    wrote on last edited by
    #1

    Hello, Our application produces sometimes popup windows like this application.exe - Application Error The instruction at "0x4003e98c" referenced memory at "0x00000224". The memory could not be "read". or access violation and other things are reported. Our applikation is a console application and we don't want the popup because we can't restart the application automatically before the popup window button is clicked. Is there a similar way like '_set_error_mode' in the VC runtime library. With this function you can put VC runtime library error (i.e. asserts) into a Message Box or to stderr. Frank

    D 1 Reply Last reply
    0
    • U User 6113323

      Hello, Our application produces sometimes popup windows like this application.exe - Application Error The instruction at "0x4003e98c" referenced memory at "0x00000224". The memory could not be "read". or access violation and other things are reported. Our applikation is a console application and we don't want the popup because we can't restart the application automatically before the popup window button is clicked. Is there a similar way like '_set_error_mode' in the VC runtime library. With this function you can put VC runtime library error (i.e. asserts) into a Message Box or to stderr. Frank

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Use the __try/__except statements, it's more flexible this way. Here's a sample from MSDN:

      // exceptions_try_except_Statement.cpp
      // compile with: /EHsc
      // Example of try-except and try-finally statements
      #include "stdio.h"

      void main()
      {
      int* p = 0x00000000; // pointer to NULL
      puts("hello");
      __try{
      puts("in try");
      __try{
      puts("in try");
      *p = 13; // causes an access violation exception;
      }__finally{
      puts("in finally");
      }
      }__except(puts("in filter"), 1){
      puts("in except");
      }
      puts("world");
      }

      I see dumb people

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups