Thread: Stack/Debug reporting in a win32 app

  1. #1
    Join Date
    Jun 2004

    Stack/Debug reporting in a win32 app

    Hello everyone. Are there any win32 (non-MFC) ways of reporting a stack trace or some sort of debug information for when my program crashes? I have try/catch blocks all over my code but There are places where there is unsafe code. or In some cases a try/catch block that encompasses multiple lies of code.

    Although this code is more of a safety feature for the users of my program, rather then myself. They would be able to email the stack trace/error report to me so I may fix it. I know some large programs (such as World of warcraft, etc) have an error reporting service with a memory dump, etc.

    Thank for your help!
    Founder and avid member of the Internationsl Typo Associateion

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    The simplest backtracing trick:
    void BackTrace(int arg){
        DisplayNum("I will return to:",*(&arg-1));
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding a console window to a Win32 app
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 02-01-2009, 01:09 PM
  2. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 10:12 AM
  3. win32 and consele app.
    By master2000 in forum C++ Programming
    Replies: 5
    Last Post: 12-22-2002, 11:50 AM
  4. Console App Vs Win32
    By Jez_Master in forum C++ Programming
    Replies: 1
    Last Post: 04-07-2002, 05:46 PM
  5. Is it possible to get a console up with a win32 app?
    By SilentStrike in forum Windows Programming
    Replies: 2
    Last Post: 12-18-2001, 05:15 PM