Click here to Skip to main content
15,917,059 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Please help - COM Interop Pin
metal_rob7-Jul-05 2:51
metal_rob7-Jul-05 2:51 
GeneralRe: Please help - COM Interop Pin
Christian Graus7-Jul-05 13:11
protectorChristian Graus7-Jul-05 13:11 
GeneralRe: Please help - COM Interop Pin
Alomgir Miah11-Jul-05 8:29
Alomgir Miah11-Jul-05 8:29 
GeneralC1083 Error: Including .h files Pin
Anonymous6-Jul-05 7:53
Anonymous6-Jul-05 7:53 
GeneralRe: C1083 Error: Including .h files - Nevermind Pin
Anonymous6-Jul-05 8:12
Anonymous6-Jul-05 8:12 
Generalstandalone manifest Pin
CoolAmir5-Jul-05 21:26
CoolAmir5-Jul-05 21:26 
GeneralRe: standalone manifest Pin
MoustafaS7-Jul-05 2:50
MoustafaS7-Jul-05 2:50 
General.Net Memory Management Issue Pin
ge_anand5-Jul-05 7:49
ge_anand5-Jul-05 7:49 
Hi,

I am working on a Windows based C# application, running on XP on Framework 1.1. The main UI of my application contains a Tab Control, and on a particular action (such as a button click) a module is opened in a Tab Page in the Tab Control.

My question relates the following strange observation: When I execute my application (in Debug mode) and check for the memory status in Task Manager, I notice that every time I open a module, a large amount of memory (about 20 MB) is created. But when I close the module only a small amount of memory (about 2 MB) is released. I have checked in two different Memory Profilers to ensure that all the objects are garbage collected properly; both the profilers report complete release of managed memory. One of the profiler actually reports only 2MB as allocated on the managed heap when my module is opened and the same amount as reclaimed when closed.

When I perform the above operation of opening and closing of the module contineously, Task manager shows that each time there is an increase of about 1 MB in memory size.

I am using a COM object, which is being released with the call Marshal.ReleaseComObject(). I also use a Win API call from a "static extern" declaration.

Any idea why this could be happening?

Thanks in advance.

Regards,
Edwin.
GeneralRe: .Net Memory Management Issue Pin
Dave Kreskowiak5-Jul-05 9:35
mveDave Kreskowiak5-Jul-05 9:35 
GeneralRe: .Net Memory Management Issue Pin
[Marc]5-Jul-05 11:10
[Marc]5-Jul-05 11:10 
GeneralRe: .Net Memory Management Issue Pin
S. Senthil Kumar6-Jul-05 6:57
S. Senthil Kumar6-Jul-05 6:57 
GeneralRe: .Net Memory Management Issue Pin
[Marc]6-Jul-05 10:15
[Marc]6-Jul-05 10:15 
GeneralRe: .Net Memory Management Issue Pin
ge_anand6-Jul-05 20:26
ge_anand6-Jul-05 20:26 
GeneralSetup Issue Pin
waffleman5-Jul-05 0:07
waffleman5-Jul-05 0:07 
GeneralRe: Setup Issue Pin
ge_anand5-Jul-05 7:57
ge_anand5-Jul-05 7:57 
GeneralRe: Setup Issue Pin
rwestgraham6-Jul-05 13:24
rwestgraham6-Jul-05 13:24 
QuestionCOM InterOp with Delegate(Event) support? Pin
Huisheng Chen4-Jul-05 22:51
Huisheng Chen4-Jul-05 22:51 
General[ Active Directory ] Retrieve Terminal Services User Profile Path Pin
Jaymz6664-Jul-05 5:21
Jaymz6664-Jul-05 5:21 
GeneralGood Book for .NET and C# Pin
ameysp4-Jul-05 1:12
ameysp4-Jul-05 1:12 
GeneralRe: Good Book for .NET and C# Pin
MoustafaS4-Jul-05 8:42
MoustafaS4-Jul-05 8:42 
GeneralRe: Good Book for .NET and C# Pin
Mike Dimmick4-Jul-05 11:22
Mike Dimmick4-Jul-05 11:22 
GeneralRe: Good Book for .NET and C# Pin
Christian Graus4-Jul-05 13:22
protectorChristian Graus4-Jul-05 13:22 
GeneralRe: Good Book for .NET and C# Pin
MKlucher4-Jul-05 15:18
MKlucher4-Jul-05 15:18 
GeneralRe: Good Book for .NET and C# Pin
ameysp4-Jul-05 18:55
ameysp4-Jul-05 18:55 
GeneralRe: Good Book for .NET and C# Pin
Kevin McFarlane6-Jul-05 9:50
Kevin McFarlane6-Jul-05 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.