[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3086: SegmentFault using gb-db2-sqlite3 (but not with gb-db-sqlite)


http://gambaswiki.org/bugtracker/edit?object=BUG.3086&from=L21haW4-

Comment #4 by Benoît MINISINI:

I think I get it: by closing and opening the connections repeatedly (for no reason I can see), you closed the connection used by the DataSource of the FDimension form.
That invalidates the 'Table' object maintained by the connection the DataSource kept a reference on, even if you open the connection again after having closed it.

Hence the error.

You may not have the error with 'gb.db' because the Connection sub-objects like Table behaved differently.

I will see if I can make the 'gb.db2' component behave more like 'gb.db' without sacrificing anything.

But this is not a reason for not cleaning the mess you do with the connections. :-)


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----