Click here to Skip to main content
15,915,869 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: flat style CListCtrl Pin
Michael Dunn25-Mar-03 19:33
sitebuilderMichael Dunn25-Mar-03 19:33 
GeneralRe: flat style CListCtrl Pin
logo2age26-Mar-03 20:41
logo2age26-Mar-03 20:41 
GeneralAbout "Select&Copy" of CGridCtrl Pin
Kanghongyuan25-Mar-03 13:50
Kanghongyuan25-Mar-03 13:50 
Question"This" reference? Pin
wow999925-Mar-03 13:34
wow999925-Mar-03 13:34 
AnswerRe: "This" reference? Pin
Anders Molin25-Mar-03 13:48
professionalAnders Molin25-Mar-03 13:48 
AnswerRe: "This" reference? Pin
Jambolo25-Mar-03 16:27
Jambolo25-Mar-03 16:27 
GeneralSpecifying debugger Pin
Jon Sagara25-Mar-03 10:46
Jon Sagara25-Mar-03 10:46 
GeneralRe: Specifying debugger Pin
Anders Molin25-Mar-03 13:21
professionalAnders Molin25-Mar-03 13:21 
Does this help?

From the "Debugging Applications" book:

Common Debugging Question
--------------------------------------------------------------------------------
How do I change the default debugger that the operating system will use when a crash occurs?
When an application crashes, Windows 2000 looks in the registry key HKEY- _LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug , and Windows 98 looks in the [AeDebug] section of WIN.INI to determine what they should call to debug the application. If no values are in the key, Windows 2000 reports the address of the crash. If an access violation caused the crash, Windows 2000 also reports the memory location that the process couldn't read or write. Windows 98 displays the standard crash dialog box, and if you click the Details button, it will list the module, address, and registers at the time of the crash.

Three possible string values can be placed in the AeDebug key or section.


Auto


Debugger


UserDebuggerHotKey

If Auto is set to 0 (zero), the operating system will generate the standard crash dialog box and enable the Cancel (Windows 2000) or Debug (Windows 98) button if you want to attach the debugger. If Auto is set to 1 (one), the debugger is automatically started. The Debugger value specifies the debugger the operating system will start on the crashed application. The only requirement for the debugger is that it supports attaching to a process. The UserDebuggerHotKey value identifies the key that will be used to break into the debugger. Refer to the section "Quick Break Keys" later in the chapter to find out how to set this value.

You can set the AeDebug key manually, but Dr. Watson (Windows 2000 only), WinDBG, and the Visual C++ debugger allow you to set it through various means. Dr. Watson and WinDBG use the -I command-line switch that will set them as the default debugger. To set the Visual C++ debugger as the debugger the operating system will call, on the Debug tab in the Options dialog box, check Just-In-Time Debugging.

If you do look at the AeDebug key, the value that's entered for Debugger looks like a string passed to the wsprintf API function: "drwtsn32 -p %ld -e %ld -g." That's exactly what it is. The -p is the process ID for the crashing process, and the -e is an event handle value that the debugger needs to signal when its debug loop gets the first thread exit debug event. Signaling the event handle tells the operating system that the debugger attached cleanly.


- Anders

Money talks, but all mine ever says is "Goodbye!"
GeneralRe: Specifying debugger Pin
Jon Sagara25-Mar-03 13:23
Jon Sagara25-Mar-03 13:23 
Generalcout << flush not working in my class that inherits from fstream Pin
mflores8825-Mar-03 10:28
mflores8825-Mar-03 10:28 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
Dave Bryant25-Mar-03 11:12
Dave Bryant25-Mar-03 11:12 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
mflores8826-Mar-03 5:15
mflores8826-Mar-03 5:15 
GeneralPbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:14
RaajaOfSelf25-Mar-03 9:14 
GeneralRe: Pbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:25
RaajaOfSelf25-Mar-03 9:25 
GeneralShared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 8:29
CLM25-Mar-03 8:29 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks25-Mar-03 10:01
Neville Franks25-Mar-03 10:01 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 12:03
CLM25-Mar-03 12:03 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks26-Mar-03 0:45
Neville Franks26-Mar-03 0:45 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM26-Mar-03 15:56
CLM26-Mar-03 15:56 
QuestionHow to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:17
Anonymous25-Mar-03 8:17 
AnswerRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:21
Tim Smith25-Mar-03 8:21 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:31
Anonymous25-Mar-03 8:31 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:48
Tim Smith25-Mar-03 8:48 
QuestionHow to copy a large amount of data? Pin
Jakob Bysewski25-Mar-03 8:08
Jakob Bysewski25-Mar-03 8:08 
AnswerRe: How to copy a large amount of data? Pin
Tim Smith25-Mar-03 8:19
Tim Smith25-Mar-03 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.