On 10 Sep 2010, at 18:58, Seth Grover wrote: > It seems the cause of this is that halt, which calls InternalExit and > System_exit, which in turn calls haltproc, does not actually halt the > program in the case of a library. Instead, haltproc for the library > just calls InternalExit again and returns.
It's probably caused by r14184, which was in response to http://bugs.freepascal.org/view.php?id=14958 The problem is probably that the lib's exit code is called both when the library is unloaded (in which case you don't want the process to terminate) and when the "library" terminates (either via an unhandled exception, or by calling halt). I can't say off-hand how to decouple them, but a patch would be welcome. Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal