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. problem with CDaoDataBase in Thread

problem with CDaoDataBase in Thread

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databaseannouncement
6 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.
  • S Offline
    S Offline
    Shivanand Gupta
    wrote on last edited by
    #1

    when i am using CdaoDataBase in main application and close it ,it works success but when i used cdaodatabase class in thread and close database and after that close application. it gives error. daocore.cpp line 40 m_Daoworkspace.release();

    D 1 Reply Last reply
    0
    • S Shivanand Gupta

      when i am using CdaoDataBase in main application and close it ,it works success but when i used cdaodatabase class in thread and close database and after that close application. it gives error. daocore.cpp line 40 m_Daoworkspace.release();

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Shivanand Gupta wrote:

      it gives error.

      Are we somehow supposed to guess what that error is? Have you put a breakpoint on line 40 of daocore.cpp and used the debugger to look at the code?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      S 1 Reply Last reply
      0
      • D David Crow

        Shivanand Gupta wrote:

        it gives error.

        Are we somehow supposed to guess what that error is? Have you put a breakpoint on line 40 of daocore.cpp and used the debugger to look at the code?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        S Offline
        S Offline
        Shivanand Gupta
        wrote on last edited by
        #3

        i have check by breakpoint. error occur when we close the application where CdaoDatabase class used in thread .

        D 1 Reply Last reply
        0
        • S Shivanand Gupta

          i have check by breakpoint. error occur when we close the application where CdaoDatabase class used in thread .

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Shivanand Gupta wrote:

          error occur...

          What error?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          S 1 Reply Last reply
          0
          • D David Crow

            Shivanand Gupta wrote:

            error occur...

            What error?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            S Offline
            S Offline
            Shivanand Gupta
            wrote on last edited by
            #5

            when we close application then applicationn perform this line of code (daocore.cpp file) // Clean up engine object if necessary if (pDaoState->m_pDAODBEngine != NULL) { pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line pDaoState->m_pDAODBEngine = NULL; }

            D 1 Reply Last reply
            0
            • S Shivanand Gupta

              when we close application then applicationn perform this line of code (daocore.cpp file) // Clean up engine object if necessary if (pDaoState->m_pDAODBEngine != NULL) { pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line pDaoState->m_pDAODBEngine = NULL; }

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Shivanand Gupta wrote:

              pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line

              Ok, but what's the error? Is it an assertion, an exception, or something else?

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Man who follows car will be exhausted." - Confucius

              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