Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: huzhongshan on June 13, 2012, 12:26:56 AM

Title: Find occurrences of: ... sometimes crashes
Post by: huzhongshan on June 13, 2012, 12:26:56 AM
When I use Find occurrences of ... , it will crash sometime, but not always. I attached the screenshot.


[attachment deleted by admin]
Title: Re: Find occurrences of: ... sometimes crashes
Post by: stahta01 on June 13, 2012, 12:33:04 AM
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.
Title: Re: Find occurrences of: ... sometimes crashes
Post by: 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.
Title: Re: Find occurrences of: ... sometimes crashes
Post by: huzhongshan on June 13, 2012, 11:15:04 AM
rev 8024 and other nightly builds.

Title: Re: Find occurrences of: ... sometimes crashes
Post by: huzhongshan on June 14, 2012, 12:07:49 AM
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.