CODE
try
{
Application.Run(new Form1());
}
catch (Exception e)
{
//report exception to server
{
Application.Run(new Form1());
}
catch (Exception e)
{
//report exception to server
Through visual studio, the above catch block is actually invoked. (I'm using it for error reporting back to my site, to fix problems and such).
But when I run the standalone exe, the exception is thrown into .NET's exception handling mechanism, and thus is never caught by my try catch block. It mentions JIT (just in time debugging), but I don't know if it has to do with it.
Is this the right way I should be doing this? It makes sense and works through Visual Studio, but not as standalone (which I need).
