I don't get this.. I was able to use it the other day without issue, but now when I use it, the "message" that I put into the paramater doesn't get printed out to the console, and I get an error box saying "Program has stopped working. Windows is checking for a solution to the problem."

I can click "Close program" and it will go away, but its as if the FailFast method just isn't working as advertised.

I'm envoking it as follows: Environment.FailFast("Error!"); The string "Error!" doesn't get printed out, and I get that crash dialogue box.

Nevermind... I don't know why it somehow worked before, or if I'm just foolish, but from what i understand, its not supposed to have a clean exit.. so I'm using Environment.Exit() instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.