Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Firstly, I am very new to c++. Pardon my lack of knowledge.

This is a work project. We're running VS 2005 to develop in one machine and Remote Debugger to Debug the application(.exe) in another machine (both of of the machine do not have any internet connections). The application builds just fine but when debugged, it throws the error. Even if I put a breakpoint, the debugger doesn't go past the breakpoint no matter how many times I click continue. Now my problem is that I couldn't trace the error in a file that is written by Microsoft. Or maybe the error is not there and it is coming from another function that is using the file.

Here is an image of the problem.

Any small insight in this problem would help me do some more work on it.

Thanks.

What I have tried:

I've spent several days researching, and I came to know this kind of problem generally arises due to pointer pointing to null values or unsigned values.
Posted
Updated 19-Sep-19 6:02am

1 solution

You will need to trap the exception in the debugger and look at the call stack, in order to find where in your code the error is generated. Always remember that just because the application build without errors does not mean it is error free.
 
Share this answer
 
Comments
ribash1816 19-Sep-19 12:34pm    
tracing the error through breakpoint, the function strlen is called in another file "atlsimpstr.h" :

static int __cdecl StringLength(__in_z_opt const char* psz) throw()
{
if(psz == NULL){
return( 0 );
}
return (int(strlen(psz)));
}
Richard MacCutchan 19-Sep-19 13:42pm    
But that has nothing to do with your code. It is your code that causes the error so you need to go back to the actual place where it calls into these library functions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900