Click here to Skip to main content
16,017,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception! Pin
kcynic2-Jun-07 1:45
kcynic2-Jun-07 1:45 
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:00
professionalRajesh R Subramanian2-Jun-07 2:00 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 1:59
Matthew Faithfull2-Jun-07 1:59 
JokeRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:02
professionalRajesh R Subramanian2-Jun-07 2:02 
GeneralRe: Exception! Pin
kcynic2-Jun-07 2:15
kcynic2-Jun-07 2:15 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 2:43
Matthew Faithfull2-Jun-07 2:43 
GeneralRe: Exception! Pin
kcynic2-Jun-07 21:40
kcynic2-Jun-07 21:40 
GeneralRe: Exception! Pin
Matthew Faithfull3-Jun-07 2:43
Matthew Faithfull3-Jun-07 2:43 
There's no obvious reason why you'd get exceptions only when you don't run step by step but there are two related likely causes.
Stepping through the code affects two things, speed and thread synchronisation. If multiple threads are involved then the code may work when single stepped but crash when run for real if data or resouce sharing between the threads is faulty.
If it's single threaded then all you really have left is speed and unless there's any io/comms external or interprocess communication going on then the difference would be hard to explain. Usually single stepping would only make the system work if the code being run is overrunning a buffer in another, flawed, process but doesn't fill the buffer as fast when single stepped so you don't see the bug.;)
The only way you're going to get to the bottom of this is to look at what the excpetion tells you and where it occurs. Find the exception code e.g. 0xC0000005 for Access Violation and make sure the debugger is set to always break on that exception. If the debugger is being cryptic you could always post what it says and someone may recognise it. Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: Exception! Pin
Stephen Hewitt3-Jun-07 14:21
Stephen Hewitt3-Jun-07 14:21 
QuestionTo allign text in message box Pin
Mushtaque Nizamani2-Jun-07 0:29
Mushtaque Nizamani2-Jun-07 0:29 
AnswerRe: To allign text in message box Pin
Rajesh R Subramanian2-Jun-07 0:43
professionalRajesh R Subramanian2-Jun-07 0:43 
QuestionInverse of a matrix(urgent:) Pin
sujithkumarsl1-Jun-07 23:50
sujithkumarsl1-Jun-07 23:50 
AnswerRe: Inverse of a matrix(urgent:) Pin
Rajesh R Subramanian2-Jun-07 0:22
professionalRajesh R Subramanian2-Jun-07 0:22 
GeneralRe: Inverse of a matrix(urgent:) Pin
Mark Salsbery2-Jun-07 5:22
Mark Salsbery2-Jun-07 5:22 
AnswerRe: Inverse of a matrix(urgent:) Pin
toxcct2-Jun-07 6:04
toxcct2-Jun-07 6:04 
JokeWRONG!! Pin
Rajesh R Subramanian2-Jun-07 8:37
professionalRajesh R Subramanian2-Jun-07 8:37 
QuestionWH_KEYBOARD_LL Pin
nitin31-Jun-07 22:27
nitin31-Jun-07 22:27 
AnswerRe: WH_KEYBOARD_LL Pin
Rajesh R Subramanian1-Jun-07 22:43
professionalRajesh R Subramanian1-Jun-07 22:43 
Question860312 - using macros Pin
ilostmyid21-Jun-07 22:08
professionalilostmyid21-Jun-07 22:08 
QuestionCLSID Pin
john56321-Jun-07 22:00
john56321-Jun-07 22:00 
AnswerRe: CLSID Pin
Matthew Faithfull1-Jun-07 22:45
Matthew Faithfull1-Jun-07 22:45 
QuestionCSplitterWnd Pin
TariqZ1-Jun-07 21:21
TariqZ1-Jun-07 21:21 
AnswerRe: CSplitterWnd Pin
Hamid_RT1-Jun-07 21:58
Hamid_RT1-Jun-07 21:58 
AnswerRe: CSplitterWnd Pin
Mark Salsbery2-Jun-07 5:28
Mark Salsbery2-Jun-07 5:28 
QuestionMail -mfc Pin
prathuraj1-Jun-07 20:09
prathuraj1-Jun-07 20:09 

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.