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. C / C++ / MFC
  4. Error when closing application

Error when closing application

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingperformance
4 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.
  • K Offline
    K Offline
    Krugger404
    wrote on last edited by
    #1

    Hi all; I am working on an SDI application and everything went fine until i tried to used some library to skin my application. I used the SkinMagic library and still everything is fine. The only problem is that i get a very ugly error each time i close my application (either by selecting the little X or by clicking the "Exit" button within my app). The error reported is as follows: The instruction at XXX referenced memory at YYYY. The memory could not be read. The debugger told me that it was an unhandled exception and pointed to a call to an assembly fx (i guess) called mov. It reported the error to be there. Can somebody please help me out of this stuff. I really need to skin my application since it has to be nice-looking. Ps. Anyway, if you know some cool way of skinning an application, could you please help me too. Thank you; Krugger. Krugger

    B L 2 Replies Last reply
    0
    • K Krugger404

      Hi all; I am working on an SDI application and everything went fine until i tried to used some library to skin my application. I used the SkinMagic library and still everything is fine. The only problem is that i get a very ugly error each time i close my application (either by selecting the little X or by clicking the "Exit" button within my app). The error reported is as follows: The instruction at XXX referenced memory at YYYY. The memory could not be read. The debugger told me that it was an unhandled exception and pointed to a call to an assembly fx (i guess) called mov. It reported the error to be there. Can somebody please help me out of this stuff. I really need to skin my application since it has to be nice-looking. Ps. Anyway, if you know some cool way of skinning an application, could you please help me too. Thank you; Krugger. Krugger

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      Sounds like you are closing your window, but neglecting to close down something the skin library requires you to shut down before your window handle is gone. Check the skin library cocde for any explanaiton of tasks you must perform before your program has closed its main window. In your window's message handle, you can handle the WM_CLOSE message, and do the processing to shut down the skin library there.

      L 1 Reply Last reply
      0
      • K Krugger404

        Hi all; I am working on an SDI application and everything went fine until i tried to used some library to skin my application. I used the SkinMagic library and still everything is fine. The only problem is that i get a very ugly error each time i close my application (either by selecting the little X or by clicking the "Exit" button within my app). The error reported is as follows: The instruction at XXX referenced memory at YYYY. The memory could not be read. The debugger told me that it was an unhandled exception and pointed to a call to an assembly fx (i guess) called mov. It reported the error to be there. Can somebody please help me out of this stuff. I really need to skin my application since it has to be nice-looking. Ps. Anyway, if you know some cool way of skinning an application, could you please help me too. Thank you; Krugger. Krugger

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        hi Kind of memory leak. chk the debug window to c the leaked memory segments and try to release those segments. rgds ...mil10

        1 Reply Last reply
        0
        • B Blake Miller

          Sounds like you are closing your window, but neglecting to close down something the skin library requires you to shut down before your window handle is gone. Check the skin library cocde for any explanaiton of tasks you must perform before your program has closed its main window. In your window's message handle, you can handle the WM_CLOSE message, and do the processing to shut down the skin library there.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          hi Kind of memory leak. chk the debug window to c the leaked memory segments and try to release those segments. rgds ...mil10

          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