http://d.puremagic.com/issues/show_bug.cgi?id=310 ------- Comment #1 from bugzilla at digitalmars.com 2008-06-25 04:32 ------- If main() returns a void, as it does in the example, it will have garbage for the exit code, which is what you're seeing. --