[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Forcing the SQLite db to close?

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 4 Aug 2011 13:02:17 -0400

On Thu, Aug 4, 2011 at 9:22 AM, Mark Phippard <markphip_at_gmail.com> wrote:

> On Thu, Aug 4, 2011 at 5:14 AM, Bert Huijben <bert_at_qqmail.nl> wrote:
>
>> The Javahl problem caused by calling dispose() should be fixed in
>> r1153799.****
>>
>> ** **
>>
>> @Mark: Can you verify if this solves your problem?****
>>
>> ** **
>>
>> If this resolves the problem this fix might need backport to 1.6.
>>
>
>
> I merged this commit and the followup to my 1.7.x branch and tested.
>
> This fix definitely seems to fix the crash problem. If you have not
> nominated this yet for backport to 1.7.x please do so and add my +1.
>
> From what I can tell, this also fixes the problem with the locks being left
> on the database. I probably need to do a little more testing on this to be
> sure, but from what I see it seems to solve the problem. Now that dispose
> works, I also have to resume my task in Subclipse of being sure to call it
> everywhere I release the object.
>

Now that I have had a chance to test this on Windows, I do not think it
fixes the lock problem. The segfaults are fixed though so that is good
because we can now start calling that as we intended.

Do you have any ideas for how we can solve the lock problem? Maybe we can
add some kind of call in the dispose method that removes the locks before
doing the dispose? I will be happy to test patches.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2011-08-04 19:02:50 CEST

This is an archived mail posted to the Subversion Dev mailing list.