wxGrid segmentation faults when GetSelectedR ows get called

Firstly, apologies for not finding the previous post.

Secondly another newbie question, how could I access your fix?
(hopefully via a patch to an established distribution? )

Thanks
Robert

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, 15 January 2003 2:44 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] wxGrid segmentation faults when
GetSelectedRows get called

Robert.Cheung@csiro.au wrote:
> Hi,
>
> Test Platforms
> Linux:
> python-2.2-9mdk
> wxPythonGTK-py2.2-2.4.0.1-1.i386.rpm
>
> Windows:
> Python-2.2.1.exe (from python.org)
> wxPythonWIN32-2.4.0.1u-Py22(unicode version)
>
> I am having problem with using the wxGrid control, which seg faults
> when I try to call GetSelectedRows() after I actually
selected a row.
> Since I am new to both python and wxPython/wxWindows I might have
> overlooked something.
>
> The setup is detailed in the summary of code below, but basically a
> wxGrid is created with the wxGridSelectRows option, and embedded in
> another wxWindow. A pair of button (Add Entry/ Delete
Entry) are also
> added to the wxWindow. When either of the buttons are
pressed, I try
> to call self.grid.GetSelectedRows().
>
> If I call self.grid.GetSelectedRows() (by hitting one of
the buttons)
> before I selected anything it returns an empty list (as expected).
> However if I select a single row (any row) or several rows and then
> hit one of the buttons, the whole python program will crash with a
> segmentation fault.
>
> Any help will be greatly appreciated.
>

This was discussed (and fixed) yesterday:

http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:15471:200301:ldbbkamakcf
epjlbmbkh

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org