----- Original Message ----- From: "Henrik" <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Monday, December 11, 2006 9:59 AM Subject: [twsocket] Freeze when using smtp after recreating its parent form
> Hi! > > I have probably misunderstood something because I get the same behavior > described below no matter which of the components SmtpCli, SyncSmtpCli and > HtmlSmtpCli I use. > > The problem has to do with freeing the smtp-components parent form. You > can > easily duplicate the behavior with one of the standard demo applications: > * Open Your favorite demo of MailSnd, MimeTst or MailHtml. (I proceed > with > MailSnd-demo below.) > * Add a new form with a button to the project. Write the following in the > buttons OnClick method: > procedure TForm2.Button1Click(Sender: TObject); > begin > SmtpTestForm := TSmtpTestForm.Create(Application); > try > SmtpTestForm.ShowModal; > finally > SmtpTestForm.Release; > end; > end; When entering the second time is the form already released then? I normally just call .free never used .released. I also make the SmtpTestForm a procedure based variable in these kind of constructions. -- 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