wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/common/choiccmn.cpp(54): invalid string in wxChoice::SetStringSelection

wxPython 2.5.1

Traceback (most recent call last):
   File "./pbook.py", line 212, in OnPrintPreview
     self.printer.PreviewText(self.text, self.title)
   File "/home/sector119/python/2/Printer.py", line 48, in PreviewText
     preview_window.Initialize()
   File "/usr/lib/python2.3/site-packages/wx/windows.py", line 4158, in Initialize
     return _windows.PreviewFrame_Initialize(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/common/choiccmn.cpp(54): invalid string in wxChoice::SetStringSelection

···

--
WBR, sector119

Sergei Levchenko wrote:

wxPython 2.5.1

Traceback (most recent call last):
  File "./pbook.py", line 212, in OnPrintPreview
    self.printer.PreviewText(self.text, self.title)
  File "/home/sector119/python/2/Printer.py", line 48, in PreviewText
    preview_window.Initialize()
  File "/usr/lib/python2.3/site-packages/wx/windows.py", line 4158, in Initialize
    return _windows.PreviewFrame_Initialize(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/common/choiccmn.cpp(54): invalid string in wxChoice::SetStringSelection

Please create a small sample app that shows this problem.

···

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

Robin Dunn wrote:

Please create a small sample app that shows this problem.

this sample is from page: http://wiki.wxpython.org/index.cgi/MoreCommentsOnPrinting

2.py (1.59 KB)

···

--
WBR, sector119

Sergei Levchenko wrote:

Robin Dunn wrote:

Please create a small sample app that shows this problem.

this sample is from page: http://wiki.wxpython.org/index.cgi/MoreCommentsOnPrinting

I can no longer duplicate this in my debug worksapce so apparently it has been fixed in CVS already.

···

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