<div dir="ltr">Our Lazarus-GTK2 application crashes due to a GTK event whose target has been freed. My problem is that I can see only the place where this happens and the data has already been overwritten. <i>What I need is the place where the event was generated or enqueued.</i><div><br></div><div>I thought it'd be <font face="monospace, monospace">gtk2msgqueue.pp</font>, but <font face="monospace, monospace">TGtkMessageQueue.AddMessage</font> gets never called before the crash. A side question: What is <font face="monospace, monospace">TGtkMessageQueue</font> good for?<br><div><br></div><div>Below is the stacktrace... I'm sure it's not helpful for finding out the bug, it just illustrates my problem.</div><div><br></div><div>Regards,</div><div>Martin.<br><div><div><br><div><div><font size="1">#0  g_type_check_instance_is_a (type_instance=0x85e58f0, iface_type=139661072) at gtype.c:3967</font></div><div><font size="1">#1  0x0820f28a in GLIB2_G_TYPE_CHECK_INSTANCE_TYPE$POINTER$LONGWORD$$BOOLEAN ()</font></div><div><font size="1">#2  0x08200345 in GTK2_GTK_CHECK_TYPE$POINTER$LONGWORD$$BOOLEAN ()</font></div><div><font size="1">#3  0x082009c6 in GTK2_GTK_IS_WIDGET$POINTER$$BOOLEAN ()</font></div><div><font size="1">#4  0xb78d8000 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0</font></div><div><font size="1">#5  0xb77ed641 in g_idle_dispatch (source=source@entry=0x85ee160, callback=0x82e3430 <GTKENTRYDELAYCLEARCURSORPOS>, user_data=0x85e58f0) at gmain.c:5321</font></div><div><font size="1">#6  0xb77f0bb9 in g_main_dispatch (context=0x85305d0) at gmain.c:3066</font></div><div><font size="1">#7  g_main_context_dispatch (context=context@entry=0x85305d0) at gmain.c:3665</font></div><div><font size="1">#8  0xb77f0ecf in g_main_context_iterate (context=context@entry=0x85305d0, block=block@entry=0, dispatch=dispatch@entry=1, self=0x8508000) at gmain.c:3736</font></div><div><font size="1">#9  0xb77f0f83 in g_main_context_iteration (context=0x85305d0, may_block=0) at gmain.c:3797</font></div></div><div><div><font size="1">#10 0x081d8462 in TGTK2WIDGETSET__APPPROCESSMESSAGES (this=<error reading variable>) at ./gtk2/gtk2widgetset.inc:2326</font></div></div></div></div><div><br></div></div></div></div>