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. Application fails in Release mode....

Application fails in Release mode....

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsdata-structureshelpquestion
2 Posts 2 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.
  • J Offline
    J Offline
    Jagadeesh VN
    wrote on last edited by
    #1

    Hi, I developed an application in VC++, and it is crashing in the release mode.I enabled Debbuging in the release mode, and I hv attached the dump of my Call Stack. I dont know, why CWinApp object is NULL.Can anybody pl. help me in solving this... TBMS3! __sbh_free_block + 369 bytes TBMS3! free + 35 bytes operator delete(void * 0x0145c030) line 349 + 9 bytes CPlex::FreeDataChain(CPlex * const 0x00000000) line 45 + 6 bytes CMapPtrToPtr::RemoveAll(CMapPtrToPtr * const 0x00000000 {CMapPtrToPtr}) line 94 CHandleMap::DeleteTemp(CHandleMap * const 0x00000000) line 239 + 8 bytes AfxUnlockTempMaps(int 1) line 50 CWinThread::OnIdle(CWinThread * const 0x00000000 {CWinThread h=??? proc=???}, long 5120804) line 591 CWinApp::OnIdle(CWinApp * const 0x00000000 {CWinApp ???}, long) line 494 Also, earlier it was giving errors related to vector destructor iterator. Wherever I used delete [] ptr, the application was failing. Even though I am not using delete [] from within my code, the MFC framework is using that a lot. Is there any way by which I can force the compiler to include vector destructor, and scalar destructor. I am working in VC++ 6.0 --Rgds--

    PJ ArendsP 1 Reply Last reply
    0
    • J Jagadeesh VN

      Hi, I developed an application in VC++, and it is crashing in the release mode.I enabled Debbuging in the release mode, and I hv attached the dump of my Call Stack. I dont know, why CWinApp object is NULL.Can anybody pl. help me in solving this... TBMS3! __sbh_free_block + 369 bytes TBMS3! free + 35 bytes operator delete(void * 0x0145c030) line 349 + 9 bytes CPlex::FreeDataChain(CPlex * const 0x00000000) line 45 + 6 bytes CMapPtrToPtr::RemoveAll(CMapPtrToPtr * const 0x00000000 {CMapPtrToPtr}) line 94 CHandleMap::DeleteTemp(CHandleMap * const 0x00000000) line 239 + 8 bytes AfxUnlockTempMaps(int 1) line 50 CWinThread::OnIdle(CWinThread * const 0x00000000 {CWinThread h=??? proc=???}, long 5120804) line 591 CWinApp::OnIdle(CWinApp * const 0x00000000 {CWinApp ???}, long) line 494 Also, earlier it was giving errors related to vector destructor iterator. Wherever I used delete [] ptr, the application was failing. Even though I am not using delete [] from within my code, the MFC framework is using that a lot. Is there any way by which I can force the compiler to include vector destructor, and scalar destructor. I am working in VC++ 6.0 --Rgds--

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      A must read article: http://www.codeproject.com/debug/survivereleasever.asp[^]


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

      Within you lies the power for good; Use it!

      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