crash with GenericDirCtrl

kib2 wrote:

Hi,
I have a GenericDirCtrl wich is binded to a method with this line :

self.dir.GetTreeCtrl().Bind(wx.EVT_TREE_SEL_CHANGED, self.test)

The test method is like this :

def test(self, evt):
    fichier = self.dir.GetFilePath()
    self.texed.currentfile = fichier
    self.texed.Clear()
    self.texed.SetText(open(fichier).read())
    self.statusbar.SetStatusText( fichier )

When I click on a file name on the GenericDirCtrl, my "texed" (a StyledTextCtrl)
will load that file to see its contents. All this works well, but now, when I
quit my app, I got an execption error telling me something about a Just In Time
Debugger in Visual Studio (wich is not installed).
Any idea ?

Not really...

Does it make any difference if you call evt.Skip()? What happens if you do the same texed lines as above from some other event handler that doesn't involve the GenericDirCtrl?

···

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