Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread [Error]: Cannot access the Create(nil) instance member from within a class method
Mon, Aug 8 2016 11:46 AMPermanent Link

Emin

I am getting this error with 2.04 and 2.05 beta during compile

SurgeryReportForm := TSurgeryReportForm.Create(nil);

Thanks
Emin Borbor
Mon, Aug 8 2016 12:16 PMPermanent Link

Matthew Jones

Emin wrote:

> SurgeryReportForm := TSurgeryReportForm.Create(nil);

I suspect more context is needed.

--

Matthew Jones
Mon, Aug 8 2016 3:32 PMPermanent Link

Emin

Matthew,

>I suspect more context is needed.

I solved it. But I think this is caused by some kind of bug related to IDE event source generation for forms and components.

IDE created source code for OnCreate event as

procedure TSurgeryReportForm.Create(Sender: TObject);
begin
end;

As I deleted and recreated the OnCreate event it generated correct source as:

procedure TSurgeryReportForm.SurgeryReportFormCreate(Sender: TObject);
begin
end;

Emin Borbor
Tue, Aug 9 2016 8:21 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Emin,

<< I solved it. But I think this is caused by some kind of bug related to IDE event source generation for forms and components. >>

Hmm, if you see it again, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image