I modified dll.test.c to search for L"*" and to hang around for a while after the search. When the sample EXE started, its working set was about 3MB. After the search, its working set was about 32MB. Is there a way to free that memory?
Thanks.
- Vince
Free resources associated with a search?
Re: Free resources associated with a search?
The memory is freed after you perform another search or call Everything_Reset
Re: Free resources associated with a search?
I can't find Everything_Reset in the header, LIB, or DLL.void wrote:The memory is freed after you perform another search or call Everything_Reset
Re: Free resources associated with a search?
The SDK has been updated to include Everything_Reset in the headers, dll and libraries.
Re: Free resources associated with a search?
That was fast! Thanks. Indeed, it works.
- Vince
- Vince
-
- Posts: 34
- Joined: Mon May 04, 2015 10:30 am
Re: Free resources associated with a search?
Maybe Everything_Reset() should also call TerminateThread() if the
_Everything_thread_proc() is still alive at that point?
_Everything_thread_proc() is still alive at that point?
Re: Free resources associated with a search?
_Everything_thread_proc() should only run inside the _Everything_Query() call.
The thread _Everything_thread_proc will close before _Everything_Query() returns.
Note: No thread is created if you set bWait to FALSE in _Everything_Query().
The thread _Everything_thread_proc will close before _Everything_Query() returns.
Note: No thread is created if you set bWait to FALSE in _Everything_Query().