Well, if it's the problem, you could try something like

procedure MyForm.Memo1Change(Sender: TObject);
begin
    if not (ComponentState = []) then Exit;
    ...
end;

Cheers,

Carl Reynolds                      Ph: +64-9-4154790
CJN Technologies Ltd.             Fax: +64-9-4154791
[EMAIL PROTECTED]                DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/

> -----Original Message-----
> From: Andrew Masters [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 25, 1999 2:57 PM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  Component Creation
> 
> Hi,
> 
> When creating a dialog I get an access violation as follows
> 
> I have two memo's (actually infopower rich edits). OnChange of one I
> copy it's contents to another. It seems the OnChange gets triggered
> when the dialog creates the components and I assume the second memo
> that gets copied to has not been created yet hence the AV ? I assume
> that this is the problem (and surely it  is a common one). The dialog
> displays and works correctly after this.
> 
> Any way around this ? If indeed it is the problem !
> 
> TIA
> Andrew Masters
> Clinical Solutions Ltd
> Auckland, NZ
> Ph: +64-9-476-0106
> Fax: +64-9-476-0108 
> e: [EMAIL PROTECTED]

application/ms-tnef

Reply via email to