On Thursday, May 12, 2011 09:22:34 am Paul McNett wrote:
> On 5/12/11 7:55 AM, John Fabiani wrote:
> > Hi,
> > I have spent a little time on the 2.7 grid issue causing a seg fault.  I
> > get a traceback that contains:
> > wx.core.PyAssertionError: C++ assertion "col>=0&&  col<  m_numCols"
> > failed at ..\..\src\generic\grid.cpp(10594) in
> > wxGrid::SetColSize():invalid column index.
> > 
> > This comes from
> 
> [snip]
> 
> > File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 4239, in _setColumnCount
> > 
> >    self.addColumn(inBatch=True)
> > 
> > File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 3246, in addColumn
> > 
> >    col.Width = col.Width
> > 
> > File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 1442, in _getWidth
> > 
> >    self.Parent.SetColSize(idx, v)
> > 
> > File "c:\Python26\Lib\site-packages\wx-2.8-msw-unicode\wx\grid.py", line
> > 1732, in SetColSize
> > 
> >    return _grid.Grid_SetColSize(*args, **kwargs)
> > 
> > Hopes this helps.
> 
> Tracebacks always help. How come you got a traceback now and not before, I
> wonder? Try r6589.
> 
> Paul

Sorry no joy!  I guess the traceback is unrelated.  I'm stilling getting
XXX lineno: 568, opcode: 0
Segmentation fault

The traceback started appearing in my last effort - IOW's my test code.  It 
has something to do with the dialog.show() because that's when it crashes.

I have tried many different ways to open a grid in code all in an attempt to 
get to the root of the problem without any success.

Just to refresh everyone:
The demo works.
Adding a grid to ClassDesigner causes a seg fault.

Most of my test code creates a dialog and displays a grid and when the show() 
of the dialog happens it crashes.

Johnf





Johnf

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to