Author Topic: Find occurrences of: ... sometimes crashes  (Read 4995 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Find occurrences of: ... sometimes crashes
« 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]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Find occurrences of: ... sometimes crashes
« Reply #1 on: June 13, 2012, 12:33:04 am »
Code::Blocks version?

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

Tim S.
« Last Edit: June 13, 2012, 12:35:01 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Find occurrences of: ... sometimes crashes
« Reply #2 on: June 13, 2012, 07:16:01 am »
Code
	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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Find occurrences of: ... sometimes crashes
« Reply #3 on: June 13, 2012, 11:15:04 am »
rev 8024 and other nightly builds.


Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Find occurrences of: ... sometimes crashes
« Reply #4 on: June 14, 2012, 12:07:49 am »
Code
	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.