vs2005 closing app error

Hi there I have one annoying problem, I am working on app which is mainly converting files and sendig data on serial port, and everything is all right there is no errors and so on and so far, but when I try to close app something like it appears
"Unhandled exception at 0x00509a76 in HH Manager.exe: 0xC0000005: Access violation reading location 0xccccccc8."
Could you help me anyway, and if not just make any advise where can I find the solution or how to debug closing application

Best wishes in winter time ;)
Adrian Proszczuk, Biocontrol Poland




Answer this question

vs2005 closing app error

  • dreameR.78

    Somewhere you are reading unallocated memory.
    Please debug through the code to identify where the error occurs.
    Since you are dealing with some files handles or something and you may be trying to close or read using invalid handle.




  • Sakito

    sxf wrote:
    Hi there I have one annoying problem, I am working on app which is mainly converting files and sendig data on serial port, and everything is all right there is no errors and so on and so far, but when I try to close app something like it appears
    "Unhandled exception at 0x00509a76 in HH Manager.exe: 0xC0000005: Access violation reading location 0xccccccc8."
    Could you help me anyway, and if not just make any advise where can I find the solution or how to debug closing application

    Best wishes in winter time ;)
    Adrian Proszczuk, Biocontrol Poland

    You could start by reading this FAQ.



  • FSOR

    Could you please the buggy code part


  • Asher Aslan

    Need to see code snippet.
  • Karim Hemani

    But this is all about some CString how can I check which one is it


  • vs2005 closing app error