Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Sugar13 on December 09, 2013, 04:04:28 am

Title: multichar crashed in precompile judge statement
Post by: Sugar13 on December 09, 2013, 04:04:28 am
when i type chinese char into the textbox, like this:
Code
#if (0xBABAD7D6 != '汉字')

the cb will crash, and show a dialog with below message:
Quote
Assertion failed!

Program: D:\ProgramC\CodeBlocks\codeblocks.exe
File: sdk\wxscintilla\src\scintilla\lexlib/CharacterSet.h
Line: 83

Expression: val >= 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)
what's wrong with it?
Title: Re: multichar crashed in precompile judge statement
Post by: ollydbg on December 09, 2013, 04:22:26 am
when i type chinese char into the textbox, like this:
Code
#if (0xBABAD7D6 != '汉字')
Where is the text box? How can I reproduce this crash? which version of C::B?
Title: Re: multichar crashed in precompile judge statement
Post by: Sugar13 on December 09, 2013, 04:31:46 am
textbox is where i input the source code, cb Build: Nov 25 2012, 09:32:38 - wx2.8.12 (Windows, unicode) - 32 bit, version is Release 12.11  rev 8629
Title: Re: multichar crashed in precompile judge statement
Post by: ollydbg on December 09, 2013, 04:38:44 am
textbox is where i input the source code, cb Build: Nov 25 2012, 09:32:38 - wx2.8.12 (Windows, unicode) - 32 bit, version is Release 12.11  rev 8629

OK, your C::B version is a bit old.
I don't have this kind of error in the recent nightly build version (Nightly builds (http://forums.codeblocks.org/index.php/board,20.0.html)), so I suggest you can do a upgrade. Also, maybe, you can try 13.12 RC (Release 12.11, RC1 has arrived (http://forums.codeblocks.org/index.php/topic,17075.0.html)).
Title: Re: multichar crashed in precompile judge statement
Post by: Sugar13 on December 09, 2013, 07:39:39 am
ok, svn build  rev 9455, this version is okey.

by the way, compiling the code makes a warning: multi-character character constant [-Wmultichar]

hao can i let the cb egnore this warning (hide this warning) ?

Title: Re: multichar crashed in precompile judge statement
Post by: oBFusCATed on December 09, 2013, 09:51:56 am
The compiler has told you - use "-Wno-mutltichar" if it doesn't work check the manual for your compiler.