IDE tells me theres an access violation, but where is it?

This is a discussion on IDE tells me theres an access violation, but where is it? within the C++ Programming forums, part of the General Programming Boards category; My program compiles and runs fine, but when I look at the output window afterwards, it says there was an ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    IDE tells me theres an access violation, but where is it?

    My program compiles and runs fine, but when I look at the output window afterwards, it says there was an access violation at so and so address reading so and so location. How can I track down this problem?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    does your vs.net have the error lookup tool? if it does i think you can use that
    Woop?

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Nah, that's different. I already know that the error is a write access violation.

    Anyway, I tracked the error down eventually to the following line in CPropertySheet:oModal():
    Code:
    HWND hWnd = (HWND)::PropertySheet(&m_psh);
    First-chance exception at 0x77359f2b in Network.exe: 0xC0000005: Access violation writing location 0x00443dd4.
    I can't seem to step into the function, and I have no idea what the problem could be. Any ideas?
    Last edited by bennyandthejets; 07-11-2004 at 05:15 AM.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    14
    Sometimes such errors happen by deleting a pointer which should be valid further on.

  6. #6
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Thank you anonytmouse.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Istream::Release access violation? [C++]
    By A10 in forum Windows Programming
    Replies: 10
    Last Post: 01-13-2009, 09:56 PM
  2. Access Violation / Seg Fault
    By Korhedron in forum C++ Programming
    Replies: 31
    Last Post: 09-06-2008, 11:47 AM
  3. access violation
    By bonkey in forum C++ Programming
    Replies: 15
    Last Post: 11-20-2003, 09:22 AM
  4. Help! CListCtrl access violation
    By bonkey in forum Windows Programming
    Replies: 4
    Last Post: 11-18-2003, 01:40 PM
  5. 0xC0000005: Access Violation
    By Strider in forum Windows Programming
    Replies: 3
    Last Post: 11-07-2001, 01:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21