   Flushing all streams!?!
  Hi, I've written some tools for my data pipeline. These work fine in Debug and release but when I try to run them outside of the dev environment I get crash in flsall in fflush.c this is called from the exit of crt0.c. Unfortunately because it's a release build run outside of visual studio there is not much debug info to hand. I haven't had much time to look into this so any ideas would be appreciated. All files are guaranteed closed as I use a file manager for all file acesses I use std out but I've never had to close this stream manually before so it's not obvious to me what could be making flush all fail. Like I said any ideas appreciated.   