lotus



previous page: W03) Why do I need a MAKE facility?
  
page up: BETA Programming Language FAQ
  
next page: W05) Make-error for lazyref_gc.c using Borland SDK?

W04) Error in directory scan using Borland SDK?




Description

This article is from the FAQ, by with numerous contributions by others.

W04) Error in directory scan using Borland SDK?

[corrected in r4.0]

Question:
Why does the following program fail with a memory exception on my windows
95/NT machine? I am using v5.1(6) of the compiler and SDK=bor.

   ORIGIN '~beta/basiclib/v1.4/directory';
   --PROGRAM:descriptor--
   (# d: @directory;
   do '.' -> d.name;
      d.scanEntries
      (#
      do select
         (# whenDir::<
              (# do (theDir).entry.path.name -> screen.putline #);
         #);
      #);
   #)

Answer:
This is due to an error in the directory library. The problem is, that the
file %betalib%\sysutils\v1.4\private\nti\bor\directory_ntbody.obj in the
release 3.1 distribution of the Mjolner System has been compiled with an
older version of the compiler. The solution is to delete the obj-file and
recompile %betalib%\sysutils\v1.4\private\directory_ntbody.bet.

 

Continue to:















TOP
previous page: W03) Why do I need a MAKE facility?
  
page up: BETA Programming Language FAQ
  
next page: W05) Make-error for lazyref_gc.c using Borland SDK?