Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: ollydbg on July 29, 2009, 03:27:25 pm

Title: Threadsearch get the wrong position if a file is not saved
Post by: ollydbg on July 29, 2009, 03:27:25 pm
see the image below:
(http://i683.photobucket.com/albums/vv194/ollydbg_cb/searchThreadissue.png)

My question is: Can ThreadSearch use the unsaved buffer?

Thanks.
Title: Re: Threadsearch get the wrong position if a file is not saved
Post by: dje on July 29, 2009, 03:47:22 pm
Hi Ollydbg.

ThreadSeach plugin is designed like C::B Search in files implementation (and most other IDE/Editors in fact), i.e. it searches in file content and does not care about open editors.
I designed it this way because it is faster, simpler and I don't want to keep synchronized editors and search results. As soon as you type a char in an editor, ThreadSearch results might be wrong, so, searching in files or editors don't make a big difference.

And I have to admit I already had problems that make me do a Ctrl+S every three typed chars ;)

Dje

Title: Re: Threadsearch get the wrong position if a file is not saved
Post by: ollydbg on July 29, 2009, 04:16:18 pm
Thanks for the explanation.  :D
Title: Re: Threadsearch get the wrong position if a file is not saved
Post by: oBFusCATed on July 29, 2009, 04:27:45 pm
Thread search could show the AnnoyingDialog, to warn you and make you choose to save all files :)
Title: Re: Threadsearch get the wrong position if a file is not saved
Post by: dje on July 29, 2009, 05:20:08 pm
IIRC, Build saves all silently...
I'll try to have a look.

Dje