Well I am pretty sure about the spelling, But I will tale a look anyway....although, I did change the variable name to fwner from fowner and it still does it. I am decalring the Fwner in the private section. this would be right would it not ? Also, shoudl I declare it as fWner : =TMycomponent or fWner : TComponent ?
Jeremy -----Original Message----- From: "Paul Grimstrup" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Tue, 13 Nov 2001 13:22:40 +1300 Subject: RE: [DUG]: Class Problem > > > > > You have a nil reference. The $0008 will be the VMT method offset. > > I suspect FOwner is being assigned nil by something, or you have a > > visibility problem, and the correct FOwner is not being assigned? > > > > Myles. > > > > Agreed. Or it could be a simple typo: > AOwner := AOwner; > > instead of > FOwner := AOwner; > > You don't have a local variable in the constructor called FOwner? Do > you > have a subclass that might be setting FOwner? > > ----------------------------------------------------------------------- > ---- > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/