News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Find occurrences of: ... sometimes crashes

Started by huzhongshan, June 13, 2012, 12:26:56 AM

Previous topic - Next topic

huzhongshan

When I use Find occurrences of ... , it will crash sometime, but not always. I attached the screenshot.


[attachment deleted by admin]

stahta01

#1
Code::Blocks version?

Current SVN Code

bool Contains(int val) const {
assert(val >= 0);
if (val < 0) return false;
return (val < size) ? bset[val] : valueAfter;
}


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on June 13, 2012, 12:33:04 AM

bool Contains(int val) const {
assert(val >= 0);
if (val < 0) return false;
return (val < size) ? bset[val] : valueAfter;
}

IIRC this was a bug in scintilla, but I cannot upgrade to a more recent one as this would break bookmarks for the moment.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

huzhongshan


huzhongshan

Quote from: MortenMacFly on June 13, 2012, 07:16:01 AM
Quote from: stahta01 on June 13, 2012, 12:33:04 AM

bool Contains(int val) const {
assert(val >= 0);
if (val < 0) return false;
return (val < size) ? bset[val] : valueAfter;
}

IIRC this was a bug in scintilla, but I cannot upgrade to a more recent one as this would break bookmarks for the moment.
Hope that it will be solved asap , because this bug will cause cb crash . the files which are changed but not saved will lose the changes.