Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

file locking


6 replies to this topic

#1 luwapula

luwapula

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male
  • Location:zimbabwe

Posted 11 July 2006 - 05:29 AM

Hie guys

I have a problem of one of my update funct that locks the file .

Iam using proiv version 4.0 running on unix platform and the file is an indexed file (cisam). It locks after reading the first oo record record.

Pliz assist.

regards

bp

#2 Mike Nicholson

Mike Nicholson

    Expert

  • Members
  • PipPipPipPip
  • 196 posts
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 11 July 2006 - 08:57 AM

Hi

I think you're going to have to clarify your problem a bit first.

Is it that the whole file is getting locked? Specific records? What's happening that you don't think should be?

FYI: A CISAM file will get the records locked as soon as you have read them in any mode other then 'L'ookup. The lock won't be released until the file write has completed.

Cheers

Mike

#3 luwapula

luwapula

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male
  • Location:zimbabwe

Posted 11 July 2006 - 07:33 PM

IT is an update function the first record before the file is writen to is locked at after read no error and how then can i make my funct procced?

b luwapula

#4 Mike Nicholson

Mike Nicholson

    Expert

  • Members
  • PipPipPipPip
  • 196 posts
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 12 July 2006 - 11:21 AM

You mean that the update stops and waits with a 'RECORD LOCKED' message?

If that is the case then there is another function (probably a screen if the record isn't being released) which has that record open. You will need to find out which process that is and get the user to come out (or kill it if necessary and you feel it is safe).

#5 luwapula

luwapula

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male
  • Location:zimbabwe

Posted 13 July 2006 - 05:17 AM

It just freezes the machine and the processing is no longer continueing.Its not even showing the error message.


Luwapula

#6 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 372 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 13 July 2006 - 07:14 AM

have you tried running bchk on the files in the function?

or fsck on the files in the partition?
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#7 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,652 posts
  • Gender:Male
  • Location:Spain

Posted 13 July 2006 - 08:48 AM

Hi,

You should try enabling TRACEALL = 15, and see what the trace says, when it freezes....

Do a search for TRACEALL to see how to use it...

Rob D.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!