Crash in SplitTree classes

[Environment: Win2k, ActiveState Python 2.2.1, wxPython 2.4.0.7]

When deriving from the wxRemotelyScrolledTreeCtrl class, I'm getting
consistent crashes at control creation. After some hours of
debugging, I determined that the wxRemotelyScrolledTreeCtrl class will
crash if it has the style wxTR_HIDE_ROOT.

I thought this was a tad bit strange, so I went to the demo and found
this:

tree = TestTree(splitter, -1, style = wxTR_HAS_BUTTONS |
                                      wxTR_NO_LINES |
                                      wxTR_ROW_LINES |
                                      #wxTR_HIDE_ROOT |
                                      wxNO_BORDER )

Sneaky, that. Is this a known bug, then?

···

--
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws

Tim Lesher wrote:

[Environment: Win2k, ActiveState Python 2.2.1, wxPython 2.4.0.7]

When deriving from the wxRemotelyScrolledTreeCtrl class, I'm getting
consistent crashes at control creation. After some hours of
debugging, I determined that the wxRemotelyScrolledTreeCtrl class will
crash if it has the style wxTR_HIDE_ROOT.

I thought this was a tad bit strange, so I went to the demo and found
this:

tree = TestTree(splitter, -1, style = wxTR_HAS_BUTTONS |
                                      wxTR_NO_LINES |
                                      wxTR_ROW_LINES |
                                      #wxTR_HIDE_ROOT |
                                      wxNO_BORDER )

Sneaky, that. Is this a known bug, then?

Probably a known bug at one time, but promptly forgotten :wink:

Go ahead and enter a bug report about it (category "contribs") but unfortunatly I don't think anyone is maintaining this code anymore. :frowning: I'll have the wxTreeListCtrl in 2.4.1 though so it's not a great loss.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!