Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. C++ Exception

C++ Exception

Scheduled Pinned Locked Moved Windows API
c++question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    T RATHA KRISHNAN
    wrote on last edited by
    #1

    Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?

    S K 2 Replies Last reply
    0
    • T T RATHA KRISHNAN

      Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      I'm betting this is nothing specific to Vista, so take it to the general VC++ section. However, I am not without compassion, so here are a few hints. If you alloc memory using new, dealloc with delete or delete [] as applicable. If you alloc using malloc, calloc, dealloc it with free. Don't deallocate the same block twice. Always initialize pointers correctly (valid value or NULL).

      Steve S Developer for hire

      __

      1 Reply Last reply
      0
      • T T RATHA KRISHNAN

        Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?

        K Offline
        K Offline
        Keshav V Kamat 0
        wrote on last edited by
        #3

        Are you trying to write into a memory location or a file?

        Keshav Kamat :) India

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups