::wxGetTopLevelParent() returns NULL
Thomas Zehbe
tz at ingenion.de
Fri Aug 25 04:26:50 PDT 2006
Am Freitag, 25. August 2006 13:08 schrieb Alex Bligh:
> Looks right to me. Note "IsTopLevel" is virtual. When your dtor is called,
> the window may already have been orphaned, and thus does not have
> a parent.
I believe that I read that windows are destroeyed from child to parent order
what would make sense.
In the debugger I observed that in wxGetTopLevelParent
the
win = win->GetParent();
statement loops and finds valid pointers. Otherwise a sig seg would ocur. And
if the pointer is valid the vtable for the object should be valid, too, I
think.
Regards,
Thomas
>
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 90 4
Fax: 05043 / 40 57 90 7
More information about the wx-users
mailing list