Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ThreadSearch plugin is born !
dje:
BUG ALERT !!!
When a long search is performed (big directory), the application hangs on ui events until the thread is finished.
Sorry, probably due to the wxMutexGui... added.
I investigate...
Concerns only v 0.5.
Dje
Pecan:
--- Quote from: dje on March 21, 2007, 11:19:34 pm ---BUG ALERT !!!
When a long search is performed (big directory), the application hangs on ui events until the thread is finished.
Sorry, probably due to the wxMutexGui... added.
I investigate...
Concerns only v 0.5.
Dje
--- End quote ---
I could be wrong about this, but....
I believe the fact that a GUI control (styledTextCtrl) is being instantiated and used in a secondary thread is the real problem.
Even though the control is "hidden" it still calls Update, Paint, SetFont, etc. It may not actually do the paint or setfont, but they're still called.
It makes cursor calls to bink the cursor, it makes paint and setfont calls when a file is loaded into its control, it makes update calls from OnIdle etc etc.
I found that I could get away with a lot of GUI calls in MSwindows in a secondary thread without a hang, but when I moved to Linux, it crashed and burned constantly.
I hope you can solve your problem, but I just want to mention this to keep you aware of the downside.
mariocup:
Hi,
it is a possible to mark text within the editor and then use the contextual menu: find occurance of: <selected text>.
I think it would be easier to use a short cut like Ctrl+Alt+F (like Search->Ffind) to put the selection directly to the Thread Search and then pressing return to get the search results.
Would this be much effort?
Bye,
Mario
dje:
Hi all !
I'm not dead !
I am working on the hanging bug !
--- Quote ---it is a possible to mark text within the editor and then use the contextual menu: find occurance of: <selected text>.
--- End quote ---
I can change the default behaviour (find the word under cursor) to 'if selection, find selection else find the word under cursor'.
Is this what you would like ?
--- Quote ---I think it would be easier to use a short cut like Ctrl+Alt+F (like Search->Ffind) to put the selection directly to the Thread Search and then pressing return to get the search results.
--- End quote ---
The Search->Thread search menu item will be modified.
I hesitate between running tne contextual 'Find occurrences' or your suggestion.
Dje
Navigation
[0] Message Index
[*] Previous page
Go to full version