crash on empty cursor

Olivier vidal_olivier at yahoo.fr
Tue Jan 11 05:46:53 CST 2005


Hi Ruslan and list,

>> In the presented case, I do not know early if the cursor will be 
>> empty.
>> It is more practical to be able to add records that the cursor is 
>> empty
>> OR not.
>
> So again,
>
> Where is problem ?

The problem is that the cursor.addrecord method crashes if, BEFORE this 
method, the result of the cursor was empty (while we waited for 
records), what was not the case in Valentina 1.

In my application I have the following cursor :
>> SELECT recId, string1, string2 FROM Table1 ORDER by string1
This cursor returns generally records BUT in certain cases it is 
possible that it is empty.

Much more late, I have a method :
call cursor.Addrecord
If the cursor was empty, the application crashes.

olivier



More information about the Valentina-beta mailing list