access violation using wxTreeCtrl

Vadim Zeitlin vadim at wxwidgets.org
Fri Feb 29 05:14:33 PST 2008


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

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list