[Lazarus] Class never seems to be initialized

Martin lazarus at mfriebe.de
Mon Jan 28 22:29:03 CET 2013


On 28/01/2013 21:04, ik wrote:
> Hello,
>
> I have a very weird problem:
>
> I have a class as a property of another class.
> I initialize it, but when checking if it was assigned, I get always
> false (both at:
> https://github.com/ik5/split_lazarus/blob/master/src/untlazsplitview_code.pas#L189
> and https://github.com/ik5/split_lazarus/blob/master/src/untlazsplitview_code.pas#L285)
>
> I can't figure out what am I missing or doing wrong.
> I tried at the beginning to use a record, and it was the same problem,
> so I moved to a class, because
> I thought it was a memory allocation issue, but the problem remains.
>

Is it both time the same tab object?
Maybe debugln its address.


Also, if you run in the debugger, you can set a watchpoint, after you 
initialized it, and the debugger will break, if it is modified.





More information about the Lazarus mailing list