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. COM
  4. DCOM and memory management: ???

DCOM and memory management: ???

Scheduled Pinned Locked Moved COM
sysadminperformancehelpquestionannouncement
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.
  • M Offline
    M Offline
    morenz
    wrote on last edited by
    #1

    Hi again.... I finished my work, and I tested its modules one by one and they worked well. Now that I put them together, I went into a trouble: my server acts like a memory-consuming program... :) Let me explain.... I open Task Manager (on Win2000 Pro) on the server machine and, as I run the client, I see the memory growing up (both Memory Usage and VM Size) and page faults incrementing in hundreds per second. When I'm about at half of my test procedure, I see this Memory Usage: 22,680K Peak Memory Usage: 164,084K Page Faults: 512,718 VM Size: 508,640K Don't jump on your chair, these procedures work with images and send images as arrays, so it's normal to have huge structures on my wires... :) So I See that VM is not released, but I don't know why. It seems that function pointer is not well-released (because actual memory usage is normal, but VM no). I tried to AddRef and Release interface pointer in every function, instead of at hte beginning and at the end of the whole program, but it did not change a bit. What can be the problem? Thanks in advance, Morenz.

    G 1 Reply Last reply
    0
    • M morenz

      Hi again.... I finished my work, and I tested its modules one by one and they worked well. Now that I put them together, I went into a trouble: my server acts like a memory-consuming program... :) Let me explain.... I open Task Manager (on Win2000 Pro) on the server machine and, as I run the client, I see the memory growing up (both Memory Usage and VM Size) and page faults incrementing in hundreds per second. When I'm about at half of my test procedure, I see this Memory Usage: 22,680K Peak Memory Usage: 164,084K Page Faults: 512,718 VM Size: 508,640K Don't jump on your chair, these procedures work with images and send images as arrays, so it's normal to have huge structures on my wires... :) So I See that VM is not released, but I don't know why. It seems that function pointer is not well-released (because actual memory usage is normal, but VM no). I tried to AddRef and Release interface pointer in every function, instead of at hte beginning and at the end of the whole program, but it did not change a bit. What can be the problem? Thanks in advance, Morenz.

      G Offline
      G Offline
      Gizzo
      wrote on last edited by
      #2

      Take a look here http://www.winwonk.com/writing/commemory/[^]

      M 1 Reply Last reply
      0
      • G Gizzo

        Take a look here http://www.winwonk.com/writing/commemory/[^]

        M Offline
        M Offline
        morenz
        wrote on last edited by
        #3

        I got it. I was using malloc instead of CoTaskMemAlloc (and free instead of CoTaskMemFree) Now I'll change all of my statements (some hundreds!!!) and will try. Thanks a lot for now!!!

        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