closing forms

Started by paulDiagnos, August 11, 2008, 11:45:08 AM

Previous topic - Next topic

paulDiagnos

Hey Guys,

I dont know if this is just me being lazy with bad coding but...

when I have my main project form launched and i decide to show other forms from it.
when i close the main form through code but other forms are left open the program is still running in the back ground.

I want to be able to close my program, regardless of what forms have been or left open.

Cheers Paul.

TechSupport

Hi Paul,

I just a quick test and I could not recreate a problem with closing the main form while the other forms are open. I did a test with a main form that opens a modeless form and then a modal form. Pressing a command button on the popup modal form closes the main form (FF_CloseForm HWND_FRMMAIN). Doing so also closed the modeless and modal form. I did not experience any phantom processes left open.

Do you have any THREADs or similar that are not being closed/terminated prior to the application ending?

paulDiagnos

I close the form using a tray icon right click not sure if thats any different

I do have threads running, but i just thought im using the ff_closeform to close the main form down.

would that be the problem?
I can keep searching it must be something im doing if you cant fint it.