I think I've found and fixed a memory leak with multi-threading in an app I wrote. (Actually, a customer found it in an uncomfortable "Can't allocate memory" kind of way. :blush:) I'm now trying to reproduce the cause so I can
submit to Microsoft.
To support this, I'd like to add to my demo app the ability to capture and log over time the private memory value column displayed by Resource Monitor. I've tried: [CODE]
Dim objProcess As New Process()
Dim intDisplay As Integer = objProcess.PrivateMemorySize64
Display(intDisplay.ToString) 'Display is shorthand for writing to screen and file[/CODE]
This property does not return the same value as Resource Monitor. Since the PrivateMemorySize64 value is always larger and does not fluctuate, I'd guess it is an allocated value and the Resource Monitor value is a dynamic value...and it's the dynamic value I'm looking for.
To support this, I'd like to add to my demo app the ability to capture and log over time the private memory value column displayed by Resource Monitor. I've tried: [CODE]
Dim objProcess As New Process()
Dim intDisplay As Integer = objProcess.PrivateMemorySize64
Display(intDisplay.ToString) 'Display is shorthand for writing to screen and file[/CODE]
This property does not return the same value as Resource Monitor. Since the PrivateMemorySize64 value is always larger and does not fluctuate, I'd guess it is an allocated value and the Resource Monitor value is a dynamic value...and it's the dynamic value I'm looking for.
jbmckim