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. Memory usage

Memory usage

Scheduled Pinned Locked Moved C / C++ / MFC
databasevisual-studiocsharpcomjson
3 Posts 3 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
    Sunil P V
    wrote on last edited by
    #1

    Hi All, This query is regarding memory issue on WinXP (SP2). I have a simple application developed on MSVS2005 IDE. I am observing a peculiar behaviour of this application's memory usage when run on XP(SP2) machine: Internally i make use of the COM interface to access the database - MSADO. 1. WinXP(SP2 with WLAN API patch) - Memory usage around 9Mb 2. WinXP(Microsoft IDE 2005 with SP2 with WLAN API patch) - Memory usage around 26Mb Do anyone have any idea behid this dire memory consumption when the application is run on XP with Visual Studio being installed. Thanks in advance for your time and support...

    Sunil

    S L 2 Replies Last reply
    0
    • S Sunil P V

      Hi All, This query is regarding memory issue on WinXP (SP2). I have a simple application developed on MSVS2005 IDE. I am observing a peculiar behaviour of this application's memory usage when run on XP(SP2) machine: Internally i make use of the COM interface to access the database - MSADO. 1. WinXP(SP2 with WLAN API patch) - Memory usage around 9Mb 2. WinXP(Microsoft IDE 2005 with SP2 with WLAN API patch) - Memory usage around 26Mb Do anyone have any idea behid this dire memory consumption when the application is run on XP with Visual Studio being installed. Thanks in advance for your time and support...

      Sunil

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Some questions -

      1. Is this a debug or release build
      2. Are you running the application under VS2005 when you get the 26MB memory usage

      Maybe you could use Dependency Walker[^] to see what DLLs are being loaded into the executable, maybe some of them are Visual Studio related?

      1 Reply Last reply
      0
      • S Sunil P V

        Hi All, This query is regarding memory issue on WinXP (SP2). I have a simple application developed on MSVS2005 IDE. I am observing a peculiar behaviour of this application's memory usage when run on XP(SP2) machine: Internally i make use of the COM interface to access the database - MSADO. 1. WinXP(SP2 with WLAN API patch) - Memory usage around 9Mb 2. WinXP(Microsoft IDE 2005 with SP2 with WLAN API patch) - Memory usage around 26Mb Do anyone have any idea behid this dire memory consumption when the application is run on XP with Visual Studio being installed. Thanks in advance for your time and support...

        Sunil

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi Sunil, Microsoft Windows will map many extra DLL's into your process space which do not appear in a PE image dependency walker. These extra libraries which are mapped into your process can be completely different on each users machine. Some examples of extra dynamic link libraries which could be mapped into your process: 1.) AppInit_DLLs[^] 2.) Window Hooks[^] 3.) Application Compatibility Layer[^] (Much of the AppCompat/Shim Engine is NDA undocumented) 4.) Device Drivers may map extra DLL's into a process. If you want to visually inspect which libraries are loaded in each situation then I would recommend downloading Process Explorer by Mark Russinovich[^]. You can export your process information to a text file and differentiate them. Best Wishes, -David Delaune

        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