Page 1 of 1

Everything SDK crashes after 11 character search. C++

Posted: Sun Jan 30, 2022 7:22 pm
by Whatevvs
I am trying to create my own "wallpaper engine"-ish app, and am intergrating everything into it. Every time i search for 11 characters I get a crash? could anyone help me? (C++)

EDIT: My application crashes, with an exception pointing to Everything64.dll
should've clarified, my bad.

Re: Everything SDK crashes after 11 character search. C++

Posted: Sun Jan 30, 2022 8:16 pm
by NotNull
Does Everything crash?
Does your application crash?
Do you get an error or other feedback?
What is shown in Everything's debug console or debug log?

Re: Everything SDK crashes after 11 character search. C++

Posted: Sun Jan 30, 2022 8:28 pm
by Whatevvs
Everything does not crash.

My application crashes (I get an exception when search is 11 chars long, even if hardcoded

This is the exception: Exception thrown at 0x00000001800072B6 (Everything64.dll) in InteractiveWallpaper.exe: 0xC0000005: Access violation writing location 0x000001D2D3131000.

Everything debug log here

Re: Everything SDK crashes after 11 character search. C++

Posted: Sun Jan 30, 2022 9:05 pm
by NotNull
According to your debug log, you are using Everything 1.4.1.1009 (x64).

Your search query was probably "abcdefghijk", although only "abcdefghij" (without the k) has reached Everything.

We will have to wait what @void has to say about it (I'm not a developer) but something that might be worth a shot is to disable shell extensions in Everything temporarily, as poorly written ones can cause all sort of trouble (although I'm not certain if they affect searches via the SDK too).
  • In the Everything search bar, type the following and press ENTER:

    Code: Select all

    /icon_shell_extensions=0
    The result of that command will be shown in Everything's statusbar for a few seconds
  • Run your code
  • Type abcdefghijk in the search bar.
To restore the original situation: /icon_shell_extensions=1


PS: What happens when you PASTE "abcdefghijklmnop" in your wallpaper app?

Re: Everything SDK crashes after 11 character search. C++

Posted: Sun Jan 30, 2022 9:29 pm
by Whatevvs
Ok apparently it is now crashing differently, instead of crashing when the search is longer than 10 it now crashes when I type 10 chars into the search bar. Still no idea what causes it but now I’m the thinking somehow its broken on my end (will look into it more tomorrow).

Re: Everything SDK crashes after 11 character search. C++

Posted: Mon Jan 31, 2022 5:04 am
by void
0x00000001800072B6
The expection is in memmove, a CRT call.
Most likely referenced from Everything_SetSearch()..

Please make sure you specify the correct buffer size for Everything_GetResultFullPathNameW
That is, the buffer size in wchars (including room for the NUL terminator)

Please make sure you are compiling with the Unicode character set and you are passing a NUL terminated Unicode string to Everything_SetSearch.

Please try stepping over each Everything SDK call.
What Everything SDK call is causing the exception?