User forums > Using Code::Blocks
multichar crashed in precompile judge statement
Sugar13:
when i type chinese char into the textbox, like this:
--- Code: ---#if (0xBABAD7D6 != '汉字')
--- End code ---
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)
--- End quote ---
what's wrong with it?
ollydbg:
--- Quote from: Sugar13 on December 09, 2013, 04:04:28 am ---when i type chinese char into the textbox, like this:
--- Code: ---#if (0xBABAD7D6 != '汉字')
--- End code ---
--- End quote ---
Where is the text box? How can I reproduce this crash? which version of C::B?
Sugar13:
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
ollydbg:
--- Quote from: 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
--- End quote ---
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), so I suggest you can do a upgrade. Also, maybe, you can try 13.12 RC (Release 12.11, RC1 has arrived).
Sugar13:
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) ?
Navigation
[0] Message Index
[#] Next page
Go to full version