I have a Thread, which resides in a Folder within another Folder in the Xojo IDE.
In this Thread, opens connections to 3 MySQLCommunityServer’s (over LAN and sometimes oven VPN, this works fine) and pull data which is stored in Strings within a Module in the same IDE Folder. The resulting RecordSets are processed in While…Wend loops.
Each Database connection is closed, right after the RecordSet has it’s data.
Each RecordSet is closed, right after i’ve processed the containing data in my While…Wend Loops.
These Strings then fill a ListBox in my Main Window (the only opened window at that time). This is done via a Timer in my Main Window. This Timer pulls the 1st entry of each String-Array until the Thread has the Status 4 and until the Arrays are empty.
When i click on the Close Icon in the Main Window, the cancel close event fires and a Method within the Main Windows is called, which checks if an instance of this Thread in my Main Window is <> NIL. If it’s <> NIL it kills the instance with the Thread.Kill function.
I am pretty sure, i do not interact with any GUI related data in my Threads.
My issue is; if i close the App while such a Thread was running, my App freezes. I have the feeling, the this happens only if a Thread was running, which opened more then 1 Database connection. But i am not sure about this…