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. Is this a Memory Issue?

Is this a Memory Issue?

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasedebuggingperformance
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.
  • B Offline
    B Offline
    brdavid
    wrote on last edited by
    #1

    I am running into something of a problem when I open one too many documents with my application. The application no longer opens any dialogs such as the new or open dialog windows. I get a system ping whenever I try to open a document in VC++ if I am running under debug and windows explorer is almost completely locked. I can click folders but it quickly goes back to the folder selected therefore doing nothing. I think the CPU meter from the Windows Task Manager is peaked at 100% but I have no way of checking where in the code things seem to be hung up. The system ping sounds like an error window but there isn't an error window appearing. Anyone have any ideas? May I be outextending the memory? I have Database ADO connections open but I have programmed them to only have the focused window have connections to the database. The other windows will close the database connections until focused. Hopefully I have given enough info. Thanks!

    S 1 Reply Last reply
    0
    • B brdavid

      I am running into something of a problem when I open one too many documents with my application. The application no longer opens any dialogs such as the new or open dialog windows. I get a system ping whenever I try to open a document in VC++ if I am running under debug and windows explorer is almost completely locked. I can click folders but it quickly goes back to the folder selected therefore doing nothing. I think the CPU meter from the Windows Task Manager is peaked at 100% but I have no way of checking where in the code things seem to be hung up. The system ping sounds like an error window but there isn't an error window appearing. Anyone have any ideas? May I be outextending the memory? I have Database ADO connections open but I have programmed them to only have the focused window have connections to the database. The other windows will close the database connections until focused. Hopefully I have given enough info. Thanks!

      S Offline
      S Offline
      Serge Krynine
      wrote on last edited by
      #2

      This looks more like resource exhaustion rather memory exhaustion; I’ve seen similar behaviour when applications create too many socket connections with dedicated threads serving such socket connections.

      B 1 Reply Last reply
      0
      • S Serge Krynine

        This looks more like resource exhaustion rather memory exhaustion; I’ve seen similar behaviour when applications create too many socket connections with dedicated threads serving such socket connections.

        B Offline
        B Offline
        brdavid
        wrote on last edited by
        #3

        Can you elaborate a little? I'm slightly confused. Resource as in Dialogue resource? Database connection resource? There isn't any internet logic nor do I think I have coded thread logic. I'm just trying to figure out where I should be looking in my code for this issue. I stepped through and noticed that the OpenDocument method will parse through fine however when it returns from this method into whatever method called it, then it starts to act this way. Thanks!

        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