Marco – I'm not sure what your problem is here, but suspect it has something to
do with the linking procedure; the resource tracking should work through
SyncRun calls, and I know it works through ASyncRun since I've used that
frequently.
You might try switching to linking with the Lattice startup rather than arpc.o,
and then explicitly OpenLibrary("arp.library",39), treating arp.library just as
you do other libraries … the only caution being that once you close the
library, any resources will be freed, so for instance you could not use the
filehandle after closing the library.
…cheath