On Mon, Jan 28, 2013 at 11:29 PM, Martin <laza...@mfriebe.de> wrote: > 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?
Yes, it is, the same variable also that is passed to the methods as a parameter. > Maybe debugln its address. I'll try that, thanks > > > 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. > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus