wx.grid delete column crash

112 views
Skip to first unread message

sebastián

unread,
Oct 4, 2012, 12:41:48 PM10/4/12
to wxpytho...@googlegroups.com
Hi

I've create a sheet and a context menu to delete columns,but  if I want to delete a column that has a custom attribute then the aplication will crash, in the other hand if I want to delete an standar column - a column without a custom attribute, then the aplication will continue working ok


my system information is

wxPython version  2.9.4.0
python version    2.7.3.0
windows 7 os 64

thanks in advance
--
Sebastián López
Ingeniero Químico

Robin Dunn

unread,
Oct 8, 2012, 12:55:08 PM10/8/12
to wxpytho...@googlegroups.com
On 10/4/12 9:41 AM, sebasti�n wrote:
> Hi
>
> I've create a sheet and a context menu to delete columns,but if I want
> to delete a column that has a custom attribute then the aplication will
> crash, in the other hand if I want to delete an standar column - a
> column without a custom attribute, then the aplication will continue
> working ok

It is probably trying to delete the custom attribute twice. Try calling
IncRef on it before you give it to the grid. Otherwise:
http://wiki.wxpython.org/MakingSampleApps


--
Robin Dunn
Software Craftsman
http://wxPython.org

Reply all
Reply to author
Forward
0 new messages