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. scalar deleting destructor

scalar deleting destructor

Scheduled Pinned Locked Moved C / C++ / MFC
data-structureshelp
3 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.
  • V Offline
    V Offline
    valerie99
    wrote on last edited by
    #1

    good afternoon, the app crashed with access violation and "scalar deleting destructor". I think it means there was an explicit call to virtual destructor corrupts stack. But I don't really see when did it happen........ here some part of the code that causing the problem..thanks! bool chrgDlg::charges() { ............... if ( !m_bCanceled ) m_dbANI.MoveNext(); } if (!m_vecBuffer.empty()) { m_binOutfile.append (&m_vecBuffer[0], m_vecBuffer.size()); m_vecBuffer.clear(); } if (!m_binOutfile.empty()) m_binOutfile.sort(); return true; }

    V P 2 Replies Last reply
    0
    • V valerie99

      good afternoon, the app crashed with access violation and "scalar deleting destructor". I think it means there was an explicit call to virtual destructor corrupts stack. But I don't really see when did it happen........ here some part of the code that causing the problem..thanks! bool chrgDlg::charges() { ............... if ( !m_bCanceled ) m_dbANI.MoveNext(); } if (!m_vecBuffer.empty()) { m_binOutfile.append (&m_vecBuffer[0], m_vecBuffer.size()); m_vecBuffer.clear(); } if (!m_binOutfile.empty()) m_binOutfile.sort(); return true; }

      V Offline
      V Offline
      valerie99
      wrote on last edited by
      #2

      USER32! 77e338b0() CDialog::EndDialog(CDialog * const 0x00000000 {CDialog hWnd=???}, int 2) line 580 + 13 bytes CDialog::OnCancel(CDialog * const 0x00000000 {CDialog hWnd=???}) line 709 Run(void * 0x0012f750) line 310 _AfxThreadEntry(void * 0x0012f290) line 112 + 5 bytes SURCHRG! _beginthreadex + 202 bytes KERNEL32! 7c57b388()

      1 Reply Last reply
      0
      • V valerie99

        good afternoon, the app crashed with access violation and "scalar deleting destructor". I think it means there was an explicit call to virtual destructor corrupts stack. But I don't really see when did it happen........ here some part of the code that causing the problem..thanks! bool chrgDlg::charges() { ............... if ( !m_bCanceled ) m_dbANI.MoveNext(); } if (!m_vecBuffer.empty()) { m_binOutfile.append (&m_vecBuffer[0], m_vecBuffer.size()); m_vecBuffer.clear(); } if (!m_binOutfile.empty()) m_binOutfile.sort(); return true; }

        P Offline
        P Offline
        Prakash Nadar
        wrote on last edited by
        #3

        Is there any multithread involved.?


        -prakash

        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