File error
jda
jda at his.com
Sun Nov 25 15:39:07 CST 2007
>
>> This works well. But when I then ultimately close that window
>> Valentina throws an exception on this line:
>>
>> myDatabase.flush
>>
>> The error is -38, file not open.
>>
>> But in the RB debugger myDatabase is show with isOpen = true.
>>
>> Do you have any idea what is going on?
>
> It is not clear AFTER WHAT it starts say -38 ???
Hi Ruslan,
I just update a field before calling the db flush -> error -38.
I checked the log (I logged EVDebugLevel.kLogFunctions) and here is
what was there:
D a t a b a s e _ S q l S e l e c t _ 1 . . .
r e t u r n o b j e c t = 2 9 3 7 9 9 0 0 8
r e t u r n o b j e c t = 2 9 3 7 9 9 0 0 8
C u r s o r _ G e t R e c o r d C o u n t . . .
r e t u r n r e s = 1
C u r s o r _ G e t F i e l d B y N a m e . . .
r e t u r n o b j e c t = 2 9 3 9 2 7 5 6 8
F i e l d _ S e t S t r i n g . . .
r e t u r n
C u r s o r _ U p d a t e R e c o r d . . .
r e t u r n
D a t a b a s e _ F l u s h . . .
All I'm doing is creating a folderitem, seeing that the file is not
writeable, and closing the folderItem. That shouldn't affect the db
(and you can see from the log it's not). But the -38 error is thrown
when I try to flush the db. I don't understand this at all...
Jon
More information about the Valentina
mailing list