dillon@CORY.BERKELEY.EDU (Matt Dillon) (04/30/88)
:Why doesn't this work? If the file doesn't exist, the appropriate
:error message is printed; if the file does exist, the machine
:promptly aborts with guru 81000009.xxxxxxxx.
: if (! Examine (lock, fib))
: {
: FreeMem (fib);
That should be:
FreeMem(fib, (long)sizeof(struct FileInfoBlock));
FreeMem() takes two arguments, the pointer and the block size. If,
on the otherhand, you used malloc(), free() requires only a pointer. BTW,
this is a *feature* of EXEC's memory system ... Allocated memory takes no
overhead.
-Matt