>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: []CFDROP won't delete compents off the end of a file
brent.hildebrand
[]CFDROP won't delete compents off the end of a file
Posted: Friday, May 28, 2004 9:31 PM (EST)

Deleting components at the begining of the file appears to work, but not when deleting them from the end.  I get a FILE INDEX ERROR when trying to drop components off the end.   Example:

 

      Œcfdrop 1 ¯10
FILE INDEX ERROR
      Œcfdrop 1 ¯10
      ^
      Œcfsize 1
1 105423 101042496 0 3584 0
      Œcfdrop 1 10
      Œcfsize 1
11 105423 101042496 0 12848 0
      Œcfdrop 1 ¯10
FILE INDEX ERROR
      Œcfdrop 1 ¯10
      ^

 

Simple Example:


      'test.2' Œcfcreate 2
2
      'test' Œcfappend 2
1
      'two' Œcfappend 2
2
      Œcfsize 2
1 3 110992 0 0 0
      Œcfdrop 2 ¯1
FILE INDEX ERROR
      Œcfdrop 2 ¯1
      ^
      Œcfdrop 2 1
      Œcfsize 2
2 3 110992 0 76 0


Comments:

Author Thread:
Mark.Osborne
[]CFDROP won't delete compents off the end of a file
Posted: Tuesday, June 01, 2004 9:25 AM (EST)

Brent,

 

Thanks for the report.  I see where the problem is.  This became broken when some changes were made to allow a component count > 2*32.  Not a likely scenario, but it followed through with extending things as far as we could.  The code to convert a 32 bit integer file system argument to a 64 bit integer argument didn't handle sign properly and so it looked like the count was way bigger than the existing number of components.

 

I have a fix.  I'm not sure when it will go into a build.

 

/Mark

     

Support
[]CFDROP won't delete compents off the end of a file
Posted: Tuesday, June 15, 2004 8:26 AM (EST)
This problem is fixed in the APL+Win version 5.2.03 beta.

APL2000 Support

     

brent.hildebrand
[]CFDROP won't delete compents off the end of a file
Posted: Tuesday, June 15, 2004 8:53 AM (EST)
[]CFDROP works OK in v5.2.03.  But many native files system functions are broken. 

     

Mark.Osborne
[]CFDROP won't delete compents off the end of a file
Posted: Tuesday, June 15, 2004 10:27 AM (EST)
Sigh. Yes, the CFDROP fix and the NF-fns bugs are related. I will fix it shortly, but a build will probably not be forthcoming until sometime next week. /Mark

     



APL2000 Official Web Site

Here is a test to find out whether your mission in life is complete. If you're alive, it isn't.
--- Richard Bach

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |