Hi,
The problem seems to be with the processes which actually terminate my code (i.e. the error is generated after main() in my program has finished). Debugging in the development environment does not generate any errors or warnings.
It does seem to be vaguely related to program size however: I can cure it by removing large chunks of code, but it refuses to be pinned down to any specific subroutine or instrument driver.
I did wonder if it might be as a consequence of running Windows 2000 and Windows 98 on the same machine?
Cheers,
Ian.