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. Dont send error after application closes

Dont send error after application closes

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 4 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.
  • N Offline
    N Offline
    neha agarwal27
    wrote on last edited by
    #1

    Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this

    CFrameWnd::OnClose();

    in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance

    N S G 3 Replies Last reply
    0
    • N neha agarwal27

      Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this

      CFrameWnd::OnClose();

      in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      neha.agarwal27 wrote:

      I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this

      How are you creating this frame. Make sure that you always "new" CFrameWnd objects. Don't create CFrameWnd objects on stack since PostNcDestroy(unless you override) tries to delete the "new"ed object. Anyway I am just trying to guess the reason. This could be one of them.


      Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com

      1 Reply Last reply
      0
      • N neha agarwal27

        Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this

        CFrameWnd::OnClose();

        in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance

        S Offline
        S Offline
        SandipG
        wrote on last edited by
        #3

        Are you closing various threds running. try in debug build you will get the assersion mostly. there can be many reasons for dont send error generaly it is memory courrption.

        1 Reply Last reply
        0
        • N neha agarwal27

          Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this

          CFrameWnd::OnClose();

          in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance

          G Offline
          G Offline
          GameProfessor
          wrote on last edited by
          #4

          you should replace it with this->PostMessage(WM_CLOSE, 0, 0); it would prevent error in case you were in the middle of something

          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