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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. easy_odbc leak memory

easy_odbc leak memory

Scheduled Pinned Locked Moved Database
questiondatabaseperformancehelp
4 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.
  • R Offline
    R Offline
    Ruscoff
    wrote on last edited by
    #1

    I saw that this class (easy_odbc) have serious memory leak. I try to insert one record every second, it makes the increase of memory without limit(every insert deals memory about 500kb). It seems that no frees statament memory, how can i resolve this problem? At moment i close and open continuously the database, but in my opinion this isn't best solution. thank you Marco

    A 1 Reply Last reply
    0
    • R Ruscoff

      I saw that this class (easy_odbc) have serious memory leak. I try to insert one record every second, it makes the increase of memory without limit(every insert deals memory about 500kb). It seems that no frees statament memory, how can i resolve this problem? At moment i close and open continuously the database, but in my opinion this isn't best solution. thank you Marco

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      I seem to have left my magic all seeing eyes at home, so I can't scan your code for the problem -or to put it another way, if you want help you need to let us see whats happening.

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      R 1 Reply Last reply
      0
      • A Ashfield

        I seem to have left my magic all seeing eyes at home, so I can't scan your code for the problem -or to put it another way, if you want help you need to let us see whats happening.

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        R Offline
        R Offline
        Ruscoff
        wrote on last edited by
        #3

        I'm apologize... Easy_ODBC class : EasyODBC[^] this is my code(m_pDbM is valid pointer to open database):

        m_pDbM.Close();
        m_pDbM.Open("nChart","","");

        CString query;

        query.Format("INSERT INTO %s (%s... (continue)");

        m_pDbM.Execute(query);

        return true;

        A 1 Reply Last reply
        0
        • R Ruscoff

          I'm apologize... Easy_ODBC class : EasyODBC[^] this is my code(m_pDbM is valid pointer to open database):

          m_pDbM.Close();
          m_pDbM.Open("nChart","","");

          CString query;

          query.Format("INSERT INTO %s (%s... (continue)");

          m_pDbM.Execute(query);

          return true;

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Ok, I didn't realise it was based on a CP article. Your best bet is to leave a message for the author (at the end of the article) as they should have an idea about the problem.

          Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

          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