PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: paulDiagnos on May 05, 2009, 11:34:13 AM

Title: And another ... Closing down
Post by: paulDiagnos on May 05, 2009, 11:34:13 AM
Does anyone else find having muiltiple forms open an absolute pain to close down.

no matter what commands i use (ff or winapi) if i try and close the program down then it still sits in the task manager under processes.

any one find something simular? or have a solution?
Title: Re: And another ... Closing down
Post by: TechSupport on May 05, 2009, 12:11:15 PM
Sounds like a symptom of a bigger problem. I expect that you must have some threads still running in the background or something. Closing the main Form of your FireFly application will close the program and close any windows associated with it.
Title: Re: And another ... Closing down
Post by: paulDiagnos on May 05, 2009, 12:13:38 PM
ok so if i close all the thread handles then I might be in with a chance.

thanks Paul its somewhere to start. this programs a big one.

Title: Re: And another ... Closing down
Post by: paulDiagnos on May 06, 2009, 12:34:14 PM
OK , I think i found what my problem was.
not only closing down the threads but using
ScrnCapt_Show (HWND_Control, %true)

stop the program shutting down when the parent is closed.

ScrnCapt_Show (HWND_Control, %false)

makes it work.
strange to me, but you guys might know the reason

cheers for your help

Paul.