Author Topic: [Bug report] Find occurrences fails - solved  (Read 3535 times)

Offline foobar

  • Single posting newcomer
  • *
  • Posts: 2
[Bug report] Find occurrences fails - solved
« on: August 24, 2016, 10:09:04 am »
Hi There,

Selecting just a part of a word and selecting "Find occurrences" won't find anything.

Clicking the search button manually afterwards works fine. So the selected part has been taken over correctly but the search itself seems to fail for any reason.

This happens at least with version 16.01 (rev 10702) (SDK version 1.29.0) on x64 win7 machines, others haven't been tested so far.

A simple file demonstrates the problem:
Code
asdf
asdf
asdf
asfd
asdf
asdf
asfd

Searching for "asdf" finds 5 matches, searching for "sdf" finds nothing when sdf is just marked and "Find occurrences" is selected via the right-click context menu, but searching "sdf" manually in "Thread search" tab works fine again and results also with 5 matches.

Maybe sb. can have a look at this, please?

Thanks!
« Last Edit: August 24, 2016, 04:22:58 pm by foobar »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [Bug report] Find occurrences fails
« Reply #1 on: August 24, 2016, 03:54:09 pm »
I have the same behavior.
But this is the expect result, because if you open the Threadsearch option dialog, there is a check box that said:
"Use default options when running Find occurrence"
This means the two kind of search use different options. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline foobar

  • Single posting newcomer
  • *
  • Posts: 2
Re: [Bug report] Find occurrences fails
« Reply #2 on: August 24, 2016, 04:21:42 pm »
You are right, there is really such a setting :)

In that case thanks a lot for clarification!