C# Get "has stopped working" error when i use Application.Exit();
<p>in my application i launch several process, and when i use the command <code>Aplication.Exit();</code> Windows give me the "has stopped working" error. i don't understand why, also the <code>Enviroment.Exit(0);</code> give me this error.
UPDATE:
i use the awesomium webcontrol, and before launch Application.Exit(); i call </p>

<pre><code>WebCore.Shutdown();
</code></pre>

<p>and then</p>

<pre><code>Process.Start("cmd.exe", "/c " + @"rmdir /s/q " + dir); // erase all temporary files

Application.Exit();
</code></pre>
