Hello,
when I call Connect() the application freezes until it returns an error msg. How can I have a working application without freezing the app?
Any redirection?
Dont freeze app while connecting
everything looks ok with TThread but there is a small problem.
If I call Connect() inside a thread and then I dont wait to connect and I close the form, the application is still in memory.
Although I have managed to stop the thread OnClose (or OnCloseQuery) it doesnt work. Maybe I need to cancel the connection attempt also, something like MyConnection.Abort() but... there is no Abort or a related function to stop the component from trying to connect.
If I call Connect() inside a thread and then I dont wait to connect and I close the form, the application is still in memory.
Although I have managed to stop the thread OnClose (or OnCloseQuery) it doesnt work. Maybe I need to cancel the connection attempt also, something like MyConnection.Abort() but... there is no Abort or a related function to stop the component from trying to connect.