Author Topic: v24 _mffind error with no files open  (Read 300 times)

jnairb

  • Senior Community Member
  • Posts: 224
  • Hero Points: 11
v24 _mffind error with no files open
« on: October 02, 2019, 09:53:10 pm »
Maybe this is related to the "v24 find in files issue", but I do have SlickEdit 24.0.0.7 (on Windows 10 x64). I have my own macro that calls _mffind and if there are no files open, I see the following stack:

Code: [Select]
This property or method is not allowed on this object
SearchResults.ex 6670 se.search.generate_search_summary(junk,li,+t c:\Users\bej\Documents\,64,,,,,)   p_window_id: 4   p_object: OI_TEXT_BOX   p_name:
bgsearch.ex 6058 start_bgsearch(junk,li,+t c:\Users\bej\Documents\,64,0,0,,,0,0,0,0,)   p_window_id: 4   p_object: OI_TEXT_BOX   p_name:
mfsearch.ex 382 _mffind(junk,li,+t c:\Users\bej\Documents\,,64,0,0,,,0,0,0,0,)   p_window_id: 4   p_object: OI_TEXT_BOX   p_name:
searches.ex 323 grep_tree()   p_window_id: 4   p_object: OI_TEXT_BOX   p_name:

I'm actually calling _mffind as
  _mffind(search_string, _search_default_options(), '+t 'files, '', MFFIND_THREADED);

Should this work with no files open? I don't get this error with v23, but I've also discovered that when starting v23 with no files open, _Nofbuffers() returns 1, so does it have a hidden buffer open that allows it to work with no user files open?

I tried doing a load_files('+t') to open a temp buffer but that also fails if there are no other files open. (Is that another issue?)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5052
  • Hero Points: 418
Re: v24 _mffind error with no files open
« Reply #1 on: October 03, 2019, 03:20:40 am »
Reproduced. Seems to be an old issue.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5052
  • Hero Points: 418
Re: v24 _mffind error with no files open
« Reply #2 on: October 03, 2019, 07:00:22 pm »
Download v24.0.0.8. This Slick-C is fixed in v24.0.0.8