CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2005
    Posts
    4

    access violation

    in debug i got

    First-chance exception in MainApp.exe (APPRES.DLL): 0xC0000005: Access Violation.

    what's that ?

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: access violation

    a 0xC0000005 error is indicative of a bad pointer or uninitialized value. Have you tried stepping through the code in the debugger? You should be able to use the stack trace to determine the flow and state of the code and variables.
    Gort...Klaatu, Barada Nikto!

  3. #3
    Join Date
    Oct 2005
    Posts
    4

    Re: access violation

    yes i did debug
    and this error i got there

  4. #4
    Join Date
    Apr 1999
    Posts
    3,585

    Re: access violation

    Have you tried looking at the variables, pointers, etc. that could have bad values? This type of error is going to require you to step though each line of code and verify that the values you are expecting are accurate.
    Gort...Klaatu, Barada Nikto!

  5. #5
    Join Date
    Feb 2005
    Location
    Pasadena, MD, USA
    Posts
    105

    Re: access violation

    Hi WU,

    You may also want to read a bit about First and Second Chance Exceptions.

    Jeff

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