Windows XP Question about Microsoft Visual c++

Joined
Feb 13, 2009
Messages
1
Reaction score
0
hi

i am working on Microsoft visual c++ and getting error
Debug Assertion Failed!
file:f:\dd\vctools\crt_bld\self_x86\crt\src\strtol.c
Line:94

Expression : nptr !=NULL

how to solve this..
 
Joined
Apr 19, 2008
Messages
4,081
Reaction score
1
sanjay said:
hi

i am working on Microsoft visual c++ and getting error
Debug Assertion Failed!
file:f:\dd\vctools\crt_bld\self_x86\crt\src\strtol.c
Line:94

Expression : nptr !=NULL

how to solve this..


Hi Sanjay...Welocme to the forum....
happywave.gif


If you copy your code into a post it might help us to find an answer for you...
 
Joined
Jul 3, 2008
Messages
407
Reaction score
0
sanjay said:
hi

i am working on Microsoft visual c++ and getting error
Debug Assertion Failed!
file:f:\dd\vctools\crt_bld\self_x86\crt\src\strtol.c
Line:94

Expression : nptr !=NULL

how to solve this..

null pointer doesn't equal null ?

Check out http://www.cplusplus.com/reference/clibrary/cstring/strtok.html

The info that follows is from my experience of C#, a true 3rd gen language based upon C++.

Without seeing you code I can't see what's supposed to be happening.

I tend to try not to use != null, it's not recommendend considering things like IsNull are more efficent. Look around and you'll find the proper / recommended validation values.
When dealing with characters I tend to use != EOF, as the end should be where nulls exsist.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top