V4RB2 - Adding to cursor crash
erne
ernestogiannotta at tiscalinet.it
Fri Feb 10 10:36:29 CST 2006
on 10-02-2006 0:11, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:
> On 2/10/06 1:00 AM, "Ivan Smahin" <ivan_smahin at valentina-db.com> wrote:
>
>>> if not (c is nil) then
>>> dim x as Integer
>>
>>> c.SetBlank EVValueAccess.forAdd
>>> c.Field(1).SetString "0"
>>> x = c.AddRecord // CRASH!
>>
>>
>>> is this a known limitation or should I file a bug report on Mantis?
>>
>> As far as I get it - you could not use EVLockType.kNoLocks for
>> RW-cursors. Meanwhile it should be no crash...
>> Report it to the Mantis and send me the project please.
>
> Ivan means that IF you want WRITE into cursor you MUST get it with ReadWrite
> locks.
>
> You can use NoLocks only for READ of data.
>
> But ... We need check this.
well, V1 used to allow this
(btw, otherwise it would be the same as EVLockType.kReadOnly)
Cool Runnings,
Erne.
--
/ |\ |\ | /
|/ | \ |
\ |\ | \| \
More information about the Valentina
mailing list