[lazarus] More on the Self and buttons behavior

Peter Vreman pfv at cooldown.demon.nl
Sun Aug 8 14:36:54 EDT 1999


> That might be why my compileroptions dialog button started crashing. In the
> OnClicked event, I just had Hide, which really means Self.Hide. So if Self
> refers to the button instead of the form, then it would be telling the button
> to hide. I don't quite know why this caused Lazarus to crash, but it definitely
> isn't right. Like you said, Self should refer to the class component and Sender
> should refer to the object that called that method. I don't know what happened
> to change this though. It was working yesterday.
But debugging it is not really possible atm, because the stabs (debug
info) is not written correctly for descendants of tpersistent. It looks
like it get in a loop when writting the info in gdb. I'll have to wait for
Pierre MUller to get back from holiday, he's the person who coded the
stabs

Peter







More information about the Lazarus mailing list