[comp.sys.mac.hypercard] still more on HD XCMD troubles

V050FN5R@ubvmsc.cc.buffalo.edu (12/02/88)

When my XCMD to catalog a hard disk starts, the first thing is does is this:
 
        cInfo := CInfoPBPtr(NewPtr(SizeOf(HParamBlockRec)));
        vInfo := HParmBlkPtr(NewPtr(SizeOf(HParamBlockRec)));
        wInfo := WDPBPtr(NewPtr(SizeOf(HParamBlockRec)));
 
then it proceeds with the cataloging. 

And now this seems to work fine.

The problem now is that it doesn't catalog every file. It seems to skip files
at random. It skips some in the root level, some folders within folders, and
some files within folders. If I put the cataloging code into an application 
format, it works fine.

I did the fix the problem with the string by making a handle to an array
of strings of type string[31], and seem to have no trouble with this, now.

I noticed in some XCMD code, the paramblock pointers are called locally, but
I get -35 errors from PBCatInfo then. 

Any ideas?