[Lazarus] EXC_BAD_ACCESS, Could not access memory

Roland Turcan konf at rotursoft.sk
Thu Apr 23 12:34:40 CEST 2009

Hello Dmitry,

Thanks for your reply.

I call SetLength from public method of class TMyobject, what
means that object is created and accessible.

About my style: I have just written a fast example which was written
inside of email client without any style. :-)


<<< 23.4.2009 12:23 - dmitry boyarintsev "skalogryz.lists at gmail.com" >>>
db> also, you don't need to write 'type' before every type declaration.
db> It's better to use pascal style:

db> type
db>   TSomeItem = record
db>                   First :single;
db>                   Second:Single;
db>                   Third :integer;
db>   end;

db>   TSomethingArr = array of TSomeItem;

db>   TMyObject =class
db>   private
db>     FItem :TSomethingArr;
db>     ..
db>   end;

db> thanks,
db> dmitry

Best regards, TRoland

More information about the Lazarus mailing list