Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Is DBISAM_KEYORRECDELETED error in OnPostError possible?
Mon, Sep 3 2007 11:31 AMPermanent Link

Joze
Hi,

in source code of Dbsys there is WindowsPostError procedure (OnPostError).
There you are checking also for DBISAM_KEYORRECDELETED error.

If I understand well then when I am posting changes my record is already locked
for other users so noone else can delete it or change it (while I am in edit
mode - pessimistic locking).

Why (in your code) are you still checking for DBISAM_KEYORRECDELETED error in
OnPostError event if other user can't change or delete locked record?

Thanks for clarification.

Best  regards,

Joze
Tue, Sep 4 2007 9:21 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Joze,

<< Why (in your code) are you still checking for DBISAM_KEYORRECDELETED
error in OnPostError event if other user can't change or delete locked
record? >>

The same error code is (possibly) raised during a Post when using optimistic
locking instead of pessimistic locking.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image