how to Disconnet while Connecting on Thread
Posted: Mon 22 Jun 2009 01:39
Hello,
I was connecting my TUniConnection under Thread because I don't want to freeze the form when the connection start, but I don't know how to cancel the connection itself just incase if user want to cancel without waiting until the connection timeout.
then I've tried to execute .Disconnect method but the does not affect the connection.
any idea ?
I was connecting my TUniConnection under Thread because I don't want to freeze the form when the connection start, but I don't know how to cancel the connection itself just incase if user want to cancel without waiting until the connection timeout.
then I've tried to execute .Disconnect method but the does not affect the connection.
any idea ?