CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    134

    Is there a list of .Net exception codes?

    Greetings!

    I have a complex ActiveX DLL written in MS Visaul C++ 6 and called from a C# application through COM Interop. It appears there may be a memory leak in the ActiveX DLL. I tried to run the application through the MS Visual C++ debugger, specifying the C# executable as the startup program. The program immediately through an exception with an error code of 0xE0434F4D. There was no explanation available.

    As I was searching the Internet for the error code, I came across a page discussing the use of WinDBG to track down exceptions. By chance, the exception used to illustrate the article had the same error code. It was a System.ArgumentException. Sure enough, when I checked my program, I realized that I had not supplied a required command line argument.

    Is there a table or web page or some such thing that lists exceptions that can be raised in the .Net world, and what error codes would be associated with them in case they show up in an old-style debugger?

    RobR

  2. #2
    Join Date
    Dec 2008
    Posts
    1

    Re: Is there a list of .Net exception codes?

    I'm not sure how up to date his book is (mine is .NET 1.1), but Adam Nathan's COM and .NET Interop book has such a table, mapping Win32 error codes to .NET exceptions and back.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Is there a list of .Net exception codes?

    Quote Originally Posted by teramorphous View Post
    Nice!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured