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 3 of 6 Topic 3838 of 3903
Post > Topic >>

Re: commit issue

by Alan Secker <alan@[EMAIL PROTECTED] > Feb 12, 2008 at 03:30 PM

N:dlzc D:aol T:com (dlzc) wrote:

> 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()" ?
> 
No reclock() comes from an article in Clipper Adviser 
going back yonks. I have used it since forever. It is
an enhanced locking scheme.

All the users use the same program in the same way including
the same RDD.

I do know that if name->trade_code was indexed, the
next line would crash the program but it isn't.

I will just have to do some of-line testing.

>> 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.

Are you saying commit is literally a waste of space?

> 
> 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

Thanks

Alan




 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 1:36:13 CDT 2008.