Click here to Skip to main content
15,919,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: capturing close button Pin
David Crow8-May-08 4:00
David Crow8-May-08 4:00 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:43
Anandi.VC8-May-08 21:43 
QuestionException Pin
Anandi.VC8-May-08 2:51
Anandi.VC8-May-08 2:51 
AnswerRe: Exception Pin
Cedric Moonen8-May-08 2:55
Cedric Moonen8-May-08 2:55 
GeneralRe: Exception Pin
Programm3r8-May-08 2:58
Programm3r8-May-08 2:58 
AnswerRe: Exception Pin
CPallini8-May-08 2:57
mveCPallini8-May-08 2:57 
AnswerRe: Exception [modified] Pin
Rajkumar R8-May-08 4:07
Rajkumar R8-May-08 4:07 
Anandi.VC wrote:
First-chance exception in DWB.exe (OLEAUT32.DLL): 0xC0000005: Access Violation.

Could any one tell me the meaning of the above sentence ?


can be invalid pointer access. and what is First-Chance exception? When Exception Occurs debugger get notified and this first pass is called "First-Chance Exception", the debugger can then decide to pass to application to run normally if the exception was not handled by the application then the debugger gets notified again and is "second-chance exception" where the application must crash.
[First and second chance exception handling^]

Several cases the first chance exceptions don’t necessarily need to be dangerous and does not mean application's code is not proper.

for instance the following code causes first chance exception message to be written in output window

try
{
	throw 100;
}
catch (...)
{
	cout << "exception";
}

try // SEH is enabled
{
	int *ptr = (int *)0x01;
	*ptr = 1000;
}
catch (...)
{
	cout << "exception";
}


but the application handled the exception, so you don't get second chance exception.
This may not be a buggy code, but if it is buggy you cannot find the exact position of exception as the default settings of the debugger won't break execution at first-chance exception, you can enable the debugger to break at First -chance Exception so that you can get the exact position. say in VS2005, "Debug->Exceptions: then check mark exception in the list". I don't remember in VS6.0 (its time to throw these old stuff dude Wink | ;) )

modified on Thursday, May 8, 2008 11:05 AM

GeneralRe: Exception Pin
Stephen Hewitt8-May-08 17:04
Stephen Hewitt8-May-08 17:04 
GeneralRe: Exception Pin
Rajkumar R8-May-08 18:44
Rajkumar R8-May-08 18:44 
GeneralRe: Exception Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
QuestionHow to copy null terminatd buffer Pin
Programm3r8-May-08 1:59
Programm3r8-May-08 1:59 
AnswerRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:05
Cedric Moonen8-May-08 2:05 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:25
Programm3r8-May-08 2:25 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:29
mveCPallini8-May-08 2:29 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:32
Cedric Moonen8-May-08 2:32 
GeneralRe: How to copy null terminatd buffer Pin
Rajkumar R8-May-08 3:05
Rajkumar R8-May-08 3:05 
GeneralRe: How to copy null terminated buffer Pin
Programm3r8-May-08 4:19
Programm3r8-May-08 4:19 
GeneralRe: How to copy null terminated buffer Pin
Rajkumar R8-May-08 4:35
Rajkumar R8-May-08 4:35 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:06
mveCPallini8-May-08 2:06 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:28
Programm3r8-May-08 2:28 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:34
Cedric Moonen8-May-08 2:34 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:36
professionalRajesh R Subramanian8-May-08 2:36 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:43
Cedric Moonen8-May-08 2:43 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:45
professionalRajesh R Subramanian8-May-08 2:45 

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.