DCOM and memory management: ???
-
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.
-
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.
-
Take a look here http://www.winwonk.com/writing/commemory/[^]