Segmentation Fault occurs in wxGrid::SetCellValue()

Samuel Abreu de Paula wrote:

Im using Python 2.2, and wxPython-2.4.1.2 in Linux, and when i try use the function:
wxGrid::SetCellValue(int, int, string) in a wxGrid, and if the cell doesn't exist, the application dies with segmentation Fault, instead raise a exception!

Sometimes when an assert happens in the C++ code control isn't able to get back to the Python code (where the exception is raised) before the thing that the assert is warning about happens and causes a crash. This is one of those cases.

I wanna know if this problem was solved in Python 2.3 or in a new version of wxPython!

Not yet, but it will be.

When you have problems like this you can turn on the assert dialogs to see what the actual message is before the crash:

  app.SetAssertMode(wxPYAPP_ASSERT_DIALOG)

Please report those that do result in a crash without an exception and if possible I'll change them such that control gets back to Python so the exception can be raised.

ยทยทยท

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