It is currently Fri May 26, 2017 11:27 pm

 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Debug Assertion failed !
PostPosted: Mon Dec 29, 2008 7:06 am 

Joined: Fri Jan 04, 2008 2:11 pm
Posts: 72
My program suddenly has a error i never had before ...the error window shows
Debug Assertion failed !

Program: ...


for ore information on how ur prog can cause asn assertion failure see msdn

i have no clue where i went wrong as yesterday the same unchanged code was working fine...can anyone help

 Post subject: Probably a character with value > 255 creeped into
PostPosted: Mon Dec 29, 2008 6:12 pm 

Joined: Wed Aug 06, 2008 7:53 pm
Posts: 182
Location: Russia
Well, below is a part of <isctype.c> (we can find it in the directory %VisualStudioPath%\VC\crt\src\isctype.c), which raised the assertion failure:

* __chvalidator
* Purpose:
*       This function is called by character testing functions in debug
*       versions. This function test for validation of c as character.
*       For improvement in performance, it is not used in non-debug
*       version.  It is available in the static single-thread non-debug
*       build, though, just in case C code that includes ctype.h is compiled
*       /D_DEBUG /ML.

#if defined (_DEBUG)
extern "C" int __cdecl _chvalidator(
        int c,
        int mask
        _ASSERTE((unsigned)(c + 1) <= 256);    ///// <---- LINE 56
        return _chvalidator_l(NULL, c, mask);

It seems that somehow a UNICODE character (some national symbol the value of which is > 255) was passed to this function. For better conjectures we need more info.

Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to: