On Tuesday, 7 October 2014 at 23:41:14 UTC, Joel wrote:
it had been opening with a command prompt, so I got rid of the prompt and now it some times crashes.

That's a feature - writing to a non-existent handle fails, so it throws an exception. (The reason you don't notice this in something like C is you prolly don't check printf's return value...)

You could just wrap the write function in a try/catch to explicitly ignore the error.

Reply via email to