[lazarus] Crash after form show...

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 25 14:37:29 EST 2003


On 19 Mar 2003 08:29:34 -0600
Tony Maro <tony at maro.net> wrote:

> Quite a bit actually.  You can download the project sources from:
> http://tony.maro.net/mod.php?mod=downloads&op=showcat&id=1&level=1
> 
> I've pinned it down to a GTK focus problem related to the notebook
> control.  It seems to be related to the focusing problem I reported on
> Monday with controls that are on the notebook control.  It's as if the
> GTK hooks are not able to figure out what control has focus when the
> control is located on a tabpage.
> 
> If you look at the GTK output from the "calling .SetFocus" mail I sent
> Monday, you'll see that Lazarus gets confused about what control has
> focus and decides that a control is focused when GTK thinks that NIL is
> focused (or something like that.)
> 
> If I comment out the hiding of the notebook control which happens during
> the onshow event, the crash goes away.  My current workaround is to make
> the notebook control one pixel tall instead of hiding it.

If this bug is still there: Plz compile with VerboseFocus and start your
program with gdb and send the backtrace. 


Mattias






More information about the Lazarus mailing list