thanks Mitch and Rob, i shall take this advise and change my habits when
it comes to form creation.

Jason

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mitch Peek
Sent: Tuesday, 5 June 2007 9:54 a.m.
To: Jason
Subject: Re: [delphi-en] Weird ShowModal behaviour

I think maybe you just disguised the underlying problem for now.  It 
still exists, and could come back to bite you again.

 >>>There is no OnCreate procedure for this form either.

There is always an OnCreate event.  You did not create your own, but you

did inherit one.

In fact, I generally delete the global form variable created with the 
form so that things like this can't happen.

You should create and show it like this.
var
  formVariable: TformName;
begin
FormVariable:=TFormName.Create(self);
try
  FormVariable.ShowModal;
finally
  FormVariable.Free;
end;
end;



Cheers,
MP



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links





Reply via email to