G
Guest
Hello there,
I'm having a slight problem in that my JIT compiler is getting an exception
and I really don't know how to stop it.
Let me expain what's happening with the help of this simple test program.
[STAThread]
[MethodImpl(MethodImplOptions.NoInlining)]
static void Main()
{
try
{
MessageBox.Show("Start");
Application.Run(new Form1());
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
bfa.Diagnostics.Trace.WriteErrorWithMessageBox(ex);
}
}
I put in a try/catch around my Main entry point.
My catch tries to log the exception with a utility in another library lets
call it DiagnosticLib.
No this is fine except if my DiagnosticLib is no on the target machine.
Ok if it's not there then i except big poblems trying to use it anyway
granted... but
I'm not even getting this far.. I don't see any ot the exception boxes i
would expect first,
I can only assume that the JIT has beat me to it?
I tried to stop inlining with [MethodImpl(MethodImplOptions.NoInlining)] but
still no luck.
This one had me beat,
anyone any ideas?
thanks in advance
Brian Keating
I'm having a slight problem in that my JIT compiler is getting an exception
and I really don't know how to stop it.
Let me expain what's happening with the help of this simple test program.
[STAThread]
[MethodImpl(MethodImplOptions.NoInlining)]
static void Main()
{
try
{
MessageBox.Show("Start");
Application.Run(new Form1());
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
bfa.Diagnostics.Trace.WriteErrorWithMessageBox(ex);
}
}
I put in a try/catch around my Main entry point.
My catch tries to log the exception with a utility in another library lets
call it DiagnosticLib.
No this is fine except if my DiagnosticLib is no on the target machine.
Ok if it's not there then i except big poblems trying to use it anyway
granted... but
I'm not even getting this far.. I don't see any ot the exception boxes i
would expect first,
I can only assume that the JIT has beat me to it?
I tried to stop inlining with [MethodImpl(MethodImplOptions.NoInlining)] but
still no luck.
This one had me beat,
anyone any ideas?
thanks in advance
Brian Keating