Hi again Frans! > Sorry, for not expressing myself any better.
No need for excuse, it was probably I who misunderstood You... > My question was "If you run the debug and while > entring the buttonclick is the .release finished > so did you find the form to be free-ed already" Yes, I think so. (The freezing occurs when trying to connect the second time the SmtpTestForm is created) > and my second remark was "If you replace the .release > with .free is the problem still there?". Yes, it's still there (and also if using Action := caFree in OnClose) > My final remark was that I normally have the form > as a procedure variable as it is not needed to be > defined outside the buttonclick event and maybe that > also solves your issue. I don't know if I understand You correctly but I think I'm doing the same; I have a separate email unit in my code library with a single Execute function that takes the necessary e-mail settings as parameters (host, emailaddress and so on....), shows a status form and returns true or false depending on if the email was sent or not. This function takes care of everything for me so I can use it to send email from any application just using the Execute function. Best Regards Henrik -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be