Crashing on close
Bart Pietercil
bart.pietercil at gmail.com
Tue Feb 27 03:22:21 CST 2007
On 26-feb-07, at 23:23, Ruslan Zasukhin wrote:
> On 26/2/07 10:00 PM, "Bart Pietercil" <bart.pietercil at gmail.com>
> wrote:
>
> Hi Bart,
>
>> No,
>>
>> further examination points to the encryption.
>> If I use the same code on the same file that is NOT encrypted,
>> everything is OK
>> when the db is encrypted (and I use DB.UseEncryptionKey) the code
>> crashes when closing the encrypted db, or when the variable pointing
>> to the db becomes nil.
>>
>> Please advice
>>
>> I can sent the encrypted db (it's very small only 2 records in 2
>> tables) and a non encrypted version.
>
> 1) better put this issue into Mantis and attach db into Mantis.
OK
>
> 2) you still should set = nil all cursors as only you do not need
> them.
I don't need to create cursors to make it crash. I just open and
close the db
>
> 3) we have encryption examples...interesting how your code differs.
So I started looking at the examples.
ANd I placed my exception handler not in a try (as in the examples)
AND it get an error code : -61
So negative error codes are OS related and I started looking
Did not find a conclusive explanation of the error but what I found
was pointing to a permission problem or a locked problem.
So I looked hard at the encrypted file and......(drums), SOMETHING
strange.
It seems that on this computer (OSX 10.4.8) I downloaded a long time
ago Valentina Carbon
So the file I created was automatically set to "opens with Valentina
Carbon".
Changed this to Valentina Studio (checked ALWAYS) and ALL problems
are gone!!!!!
So maybe the lesson needs to be that the Valentina installer should
look at this possibility (binding for VALA already assigned to
Valentina Carbon) and correct this (bind with Valentina Studio)
HTH (because this costed several hours (that I don't have))
Bart Pietercil
More information about the Valentina
mailing list