Can't see the exception of the code
-
Hi, I'm using visual studio 2010. And when i run the project on debug mode from the visual studio - and some exception is appear i see strange message box that tell me that some exception appear ( the message is "external exception e043..." ). I cant see the line in the code that make the problem and i don't know in this way what i need to fix in the code. I think this is something with my debug option - but i don't know how to fix/solve it. The try...catch block does not help - and this message appear in any case. I also heve problem to kill the process thru the task manager on some cases Someone can help here ? Thanks. P.S: how can i add screenshot to my new message ?
-
Hi, I'm using visual studio 2010. And when i run the project on debug mode from the visual studio - and some exception is appear i see strange message box that tell me that some exception appear ( the message is "external exception e043..." ). I cant see the line in the code that make the problem and i don't know in this way what i need to fix in the code. I think this is something with my debug option - but i don't know how to fix/solve it. The try...catch block does not help - and this message appear in any case. I also heve problem to kill the process thru the task manager on some cases Someone can help here ? Thanks. P.S: how can i add screenshot to my new message ?
You will need to step through the code, one line at a time until it blows up. Do you have an idea of where it might be falling apart? Is there a point in the process of the app that it all starts to go wrong? Start from there.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
You will need to step through the code, one line at a time until it blows up. Do you have an idea of where it might be falling apart? Is there a point in the process of the app that it all starts to go wrong? Start from there.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
In the pass ( visual studio 2008/2005 ) when i run on debug mode - i could see that the code stop and the IDE show me the line that cause the exception. This is what i want to see in the visual studio 2010 ... Step into the code using step by step is something that can take a lot of time.
-
Hi, I'm using visual studio 2010. And when i run the project on debug mode from the visual studio - and some exception is appear i see strange message box that tell me that some exception appear ( the message is "external exception e043..." ). I cant see the line in the code that make the problem and i don't know in this way what i need to fix in the code. I think this is something with my debug option - but i don't know how to fix/solve it. The try...catch block does not help - and this message appear in any case. I also heve problem to kill the process thru the task manager on some cases Someone can help here ? Thanks. P.S: how can i add screenshot to my new message ?
As digital_man said, single step is one way to find it. The other is: on the VS Menu bar, "Debug...Exceptions..." tick every single box on the resulting dialog, press OK. Now VS will trap exceptions for everything, whether they are handled or not. This is a right PITA so you will want to reset them when you have found the problem, but sometimes it is teh only way to find a proper cock-up.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
In the pass ( visual studio 2008/2005 ) when i run on debug mode - i could see that the code stop and the IDE show me the line that cause the exception. This is what i want to see in the visual studio 2010 ... Step into the code using step by step is something that can take a lot of time.
Yanshof wrote:
In the pass ( visual studio 2008/2005 ) when i run on debug mode - i could see that the code stop and the IDE show me the line that cause the exception.This is what i want to see in the visual studio 2010 ...
This is not completely correct, because the IDE only switches to the line if the exception is not caught anywhere (or you changed the settings under Debug->Exceptions). I do not have much experience with VS2010 but I think it behaves the same. I think your problem is, that somewhere this exception gets caught and a message box is displayed.
Greetings Covean