::wxGetTopLevelParent() returns NULL

Alex Bligh alex at alex.org.uk
Fri Aug 25 04:08:06 PDT 2006



--On 25 August 2006 12:58 +0200 Thomas Zehbe <tz at ingenion.de> wrote:

> Seems to be a complex implementation of a NULL pointer of type wxWindow*.
> Did I miss something?

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.

Alex




More information about the wx-users mailing list