Freeing a threaded query

petebr

Member
Can you free a threaded query inside its own ThreadFinished - or ThreadExecuted section?
I'm trying to use a threaded background query inside my WebSnap application, and once it's been created and has finished, no code has access to the handle - so ThreadExecuted is the only place I can recover the handle. MemCheck tells me the object hasn't been freed when I do it this way. Any ideas?
 
Can you free a threaded query inside its own ThreadFinished - or ThreadExecuted section?
No, this is not possible. When the query is freed it will implicitly free the thread, which is not possible because it is executing.
MemCheck tells me the object hasn't been freed when I do it this way. Any ideas?
You will have to manage these query instances at the same level where they are created.

------------------
Marco Kalter
Allround Automations
 
Back
Top