Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: commit issu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 3838 of 3904
Post > Topic >>

Re: commit issue

by "N:dlzc D:aol T:com \(dlzc\)" <dlzc1@[EMAIL PROTECTED] > Feb 12, 2008 at 06:14 AM

Dear Alan Secker:

"Alan Secker" <alan@[EMAIL PROTECTED]
> wrote in message 
news:qrqdnU7k6IxXGyzanZ2dnUVZ8rCdnZ2d@[EMAIL PROTECTED]
> I have just had a program crash at a commit
> instruction. The code looks like this:
>
> name->(reclock())

.... do you mean "rlock()" ?

> name->trade_code := space(4)
> name->(dbcommit())
> name->(dbunlock())
>
> Although I have use this order of statements all over
> this (huge) program without any problems before, is
> my ordering incorrect?

I don't think so, it seems the correct order.  Some things in the 
NG indicate that though you have locked and unlocked, changes 
won't hit the disk any sooner than you commit.

However rlock() returns a value indicating success.  Someone 
might have already locked the record (or the file), or WinDoze 
may have decided capriciously that it needed to tell you "no 
way".
http://www.itlnet.net/Programming/Program/Reference/c53g01c/ng96d06.html

Also, do all of your competing users of this file use the same 
locking schemes?  In other words, are they all running the same 
RDD, in the same version of Clipper?

David A. Smith




 6 Posts in Topic:
commit issue
Alan Secker <alan@[EMA  2008-02-12 11:43:26 
Re: commit issue
"N:dlzc D:aol T:com   2008-02-12 06:14:41 
Re: commit issue
Alan Secker <alan@[EMA  2008-02-12 15:30:46 
Re: commit issue
dlzc <dlzc1@[EMAIL PRO  2008-02-12 09:44:46 
Re: commit issue
cherszage@[EMAIL PROTECTE  2008-02-12 11:16:05 
Re: commit issue
"Stephen Quinn"  2008-02-12 23:56:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 5:47:07 CDT 2008.