Traceback on Close() of a wx.Dialog

I client of mine is reporting an exception which I can not duplicate nor can I think of what is causing it.

Maybe someone here can shed some light on this.

The exception is:
Traceback (most recent call last):
  File "dialogerror.pyo", line 475, in OnClearButton
  File "wx\_core.pyo", line 8093, in Close
PyAssertionError: C++ assertion "!(lvi.mask & LVIF_STATE)" failed in ..\..\src\msw\listctrl.cpp(2284): we don't support state callbacks yet!

The code in OnClearButton is:
    def OnClearButton(self, event):
        self.ClearAllFiles()
        self.Close()

"self" is a wx.Dialog

Thanks for any hints
Werner

Hi Werner,

Maybe someone here can shed some light on this.

I have no idea about that problem, but:

The code in OnClearButton is:
    def OnClearButton(self, event):
        self.ClearAllFiles()
        self.Close()

What about using self.Destroy() instead of self.Close()? I mean, if you are not doing anything special in the close event handler.

Andrea.

···

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Werner F. Bruhin wrote:

I client of mine is reporting an exception which I can not duplicate nor can I think of what is causing it.

Maybe someone here can shed some light on this.

The exception is:
Traceback (most recent call last):
File "dialogerror.pyo", line 475, in OnClearButton
File "wx\_core.pyo", line 8093, in Close
PyAssertionError: C++ assertion "!(lvi.mask & LVIF_STATE)" failed in ..\..\src\msw\listctrl.cpp(2284): we don't support state callbacks yet!

The code in OnClearButton is:
   def OnClearButton(self, event):
       self.ClearAllFiles()
       self.Close()

"self" is a wx.Dialog

Is something being done to a listctrl in ClearAllFiles?

···

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

Hi Robin,

Robin Dunn wrote:

Werner F. Bruhin wrote:

I client of mine is reporting an exception which I can not duplicate nor can I think of what is causing it.

Maybe someone here can shed some light on this.

The exception is:
Traceback (most recent call last):
File "dialogerror.pyo", line 475, in OnClearButton
File "wx\_core.pyo", line 8093, in Close
PyAssertionError: C++ assertion "!(lvi.mask & LVIF_STATE)" failed in ..\..\src\msw\listctrl.cpp(2284): we don't support state callbacks yet!

The code in OnClearButton is:
   def OnClearButton(self, event):
       self.ClearAllFiles()
       self.Close()

"self" is a wx.Dialog

Is something being done to a listctrl in ClearAllFiles?

    def ClearAllFiles(self):
        self.caller.sqllog.truncate(0)
        self.caller.stderrlog.truncate(0)
        self.caller.stdoutlog.truncate(0)

That is all in ClearAllFiles. "self.caller" is a wx.App instance and the whole dialog does not contain any listctrl's, it just has textctrl's, statictext, a checkbox and some buttons

Werner