unmanaged code access violation exception RRS feed

  • Question

  • I have a simple windows application that calls third party native library. The program works fine, but I get an access violation exception when I close the program. I first thought the problem was with 3rd party dll. I get the exception only if my exe is residing under "C:\Program Files". If it is under "C:\", I dont get the exception.

    any ideas?

    Friday, June 12, 2009 8:40 PM


  • Hmya, this is classically how unmanaged code bombs.  It doesn't have the rich exception model that managed code has, the exception you got doesn't tell you anything that helps you diagnose the problem.  You'll have to contact the vendor of the library for support, it can only be debugged with source code.

    Hans Passant.
    • Marked as answer by nobugz Tuesday, June 23, 2009 5:40 PM
    Saturday, June 13, 2009 1:57 AM