OK, it is actually packing the file successfully. Reading the help, which
says:
"New files are created from the old, and the old files are
deleted only after the process is complete."
Which implies to me that it is actually rebuilding the file by copying the
records to a temp file, which takes a while. So, when it returned
immediately, I thought it hadn't done anything!
Anyways, I turned FULLBUILD=on and it takes much longer now, and I get all
the progress events, hopefully it's rebuilding the file from scratch so as
to remove as much potential corruption as possible.
Chris
Quote:
> topspeed, sorry
> the behavior is the same on all data files i've tried
> > File system?
> > --
> > Steve Parker
> > --------------------------------------------------
> > kb and download center at:
> > www.par2.com
> > KB: http://www.par2.com/cws/c5launch.dll/FAQS/THEFAQS.exe.0
> > --------------------------------------------------
> > "The improbable, we do. The impossible takes a bit longer."
> > > OK, the help says PACK will rebuild a file, and generate events just
> like
> > > BUILD. However, I can't seem to get PACK to do anything at all, I
call
> it
> > > and it seems to immediately return, no build events are generated, and
> > > errorcode() is 0.
> > > open(workfile,12h)
> > > case errorcode()
> > > of NoError orof BadKeyErr
> > > myfile{PROP:ProgressEvents} = 100
> > > pack(workFile)
> > > if errorcode() then message('Cannot perform PACK:
> ('&errorcode()&')
> > > '&clip(error())).
> > > progressvar = workfile{prop:completed}
> > > display
> > > else
> > > ! file in use or other error, this code is NEVER reached
> > > message('Could not open file, file is in use or corrupt.')
> > > end
> > > So what's the deal here???
> > > Chris Bordeman