access violation using wxTreeCtrl
Harry
"harry dot news at armadillo dot fr" at a.mx.sunsite.dk
Fri Feb 29 08:06:59 PST 2008
Vadim,
Yes, you get the same abort when using the menu items in the "Style"
menu (Toggle hidden root and Toggle selection mode),
but then you also get erroneous asserts and have to answer No to continue.
(These asserts were already the topic of an unanswered previous thread
of mine.)
I suggested modifying the sample source for treectrl in order to get a
cleaner test.
Regards
Harry
Vadim Zeitlin wrote:
> On Fri, 29 Feb 2008 12:33:09 +0100 Harry <"harry dot news at armadillo dot fr"@a.mx.sunsite.dk> wrote:
>
> H> To duplicate the abort in the sample treectrl, do the following in file
> H> treetest.cpp :
> H> In function MyFrame::CreateTreeWithDefStyle change the first line to
> H> long style = wxTR_DEFAULT_STYLE | wxTR_MULTIPLE | wxTR_HIDE_ROOT |
> H> In function MyTreeCtrl::AddTestItemsToTree comment out the line
> H> SetItemFont(rootId, *wxITALIC_FONT);
>
> This shouldn't be different from using the menu items in the "Style" menu
> to toggle the hidden root and selection mode, should it?
>
> H> Now compile, run, open "Folder child 1", click on the first child, then
> H> exit (via menu or the close button) to get this abort.
> H> Is there anything wrong with using both wxTR_MULTIPLE and wxTR_HIDE_ROOT ?
>
> At least by doing this after the above in the unmodified sample I can't
> reproduce the problem. Can you see it in this way?
>
> Regards,
> VZ
>
>
More information about the wx-users
mailing list