[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: My Gambas programs do not close any more
[Thread Prev] | [Thread Next]
- Subject: Re: My Gambas programs do not close any more
- From: Christof Thalhofer <chrisml@xxxxxxxxxxx>
- Date: Sun, 2 Feb 2025 12:06:07 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Am 29.01.25 um 20:21 schrieb gbWilly:
Since this all happened when closing all off before going home I didn't bother further investigating. Could it be that upon closing an application, processes that are run by the gambas libraries are NOT ALWAYS closed, because they are still doing their thing? My code in library is a socket client class that seems to have received something from the other end although I closed my connection to it before closing the application.
Thank you for your findings. I found out that some programs do not stop, because they didn't save their settings which happens when the objects of the settings are freed at end.
These programs use libs.I tried to debug it in the IDE by setting a breakpoint on 'Catch' in 'Form_Close' of the main form and then step further.
I could sit and step for hours now, the program does a lot of things when it frees it's objects and somewhere there seems to be an endless loop. When I pause it after a while it doesn't let me step further.
As there is no idea and no solution now I do MySettings.Save Quit at the end of Form_Close. Alles Gute Christof Thalhofer -- Dies ist keine Signatur