Menu

Access Violation Bug, Please help!

2008-03-05
2024-06-12
  • Joe Behymer

    Joe Behymer - 2008-03-05

    Hello everyone. I'm using TinyXML to parse XML files created by Panasonic
    P2 cameras (to load metadata from HD clips) and I've run into a weird
    error:

    Unhandled exception at 0x00461c8c in xxx.exe: 0xC0000005: Access violation
    reading location 0x018f900c.

    at line: (tinyxml.h line 916) version 2.5.3

    TiXmlAttribute* First() { return ( sentinel.next == &sentinel ) ? 0 :
    sentinel.next; }

    The reason I call this error weird is because it only happens one out of
    ten runs, and each run is loading multiple (5-25) clips (reading 5-25 XML
    files).

    If anyone has any idea why/how this could be happening I am very
    interested.

    Thanks so much!!

    Joe

     
    • Sami Väisänen

      Sami Väisänen - 2008-03-07

      Here's what I would do.

      Get an export of the problematic XML datas into a file. Write a test program that runs that XML through TinyXML repeatedly to make it blow up. Then run the application with a (memory) debugger (such as valgrind) and see what's going on.

       

Log in to post a comment.