Re: [pysqlite] Seg Fault Only When Table Contains Data
Adrian Klaver <[email protected]> Tue, 3 Jun 2008 15:32:50 -0700
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 03 June 2008 2:11 pm, Rich Shepard wrote:
> On Tue, 3 Jun 2008, Adrian Klaver wrote:
> > A couple of things:
> > self.nRows = self.GetNumberRows() I know this is overriding
> > self.dataGrid.GetNumberRows() but I would rename it just to avoid
> > potential naming issues.
>
> Great catch, Adrian! That's a remnant when I had a separate
> gridTableBase class. However, renaming that function makes no difference.
Another possible issue (probably not causing this problem)
self.nRows = 1
--> self.nCols = 33 # Hardwired number. Probably better to assign
# self.colLabels first and then do self.nCols = len(self.colLabels)
self.flag = 0
self.colLabels = ['Component', 'Subcomponent', 'Variable', 'Current 1',
'Current 2', 'Current 3', 'Current 4', 'Current 5',
'Current 6', 'Current 7', 'Current 8', 'Current 9',
'Current 10', 'Current 11', 'Current 12', 'No Action',
'Alt 2', 'Alt 3', 'Alt 4', 'Alt 5', 'Alt 6', 'Alt 7',
'Alt 8', 'Alt 9', 'Alt 10', 'Alt 11', 'Alt 12', 'Alt 13',
'Alt 14', 'Alt 15', 'Alt 16', 'Alt 17', 'Alt 18']
>
> > where does:
> > self.appData.cur.execute("SELECT * from Data") occur?
>
> In the dbMethods.py module, function OpenDB().
>
> Rich
From all your reports not executing this query prevents the seg faults. Would
seem to indicate that dbMethods.py needs to be looked at.
--
Adrian Klaver
[email protected]