"Files.dir.This" returns "dir.startup"Robert wrote:"loc = NIL" is not necessarily wrong.
Have you investigated those occurances and regard them as individually suspicious?
dir.statup = NewLocator(path)
"NewLocator(path)" always returns # NIL.
"loc.This(path)" returns either "loc" or "NewLoc(path)"
In HostFiles no locator is set to NIL.
So only if one calls PROCEDURE SetDir (d: Directory);
and implements a Directory that returns NIL for ".This"
will one get a NIL locator.
But then all bets are off for the res codes can not be guaranteed either.
-Doug