none
Lost Exception Stacktrace RRS feed

  • Question

  • Odd thing

    in a code snippet like this:

    try
    {
        DoSomeCOMCalls();
    }
    catch
    {
        EnableSomeButtons();
        throw;
    }

    I get an NullReferenceException, but the stacktrace shows the line with the "throw" statement as origin of exception.
    But this was exactly what I was trying to avoid.

    I am doing some calls to a COM Object in the "DoSomeCOMCalls() function. Anyone has some ideas?

    Cheers,
    Tobias
    Tuesday, September 2, 2008 12:05 PM

Answers

All replies