
UNSOLVED
Different behavior of .Net
I have Latitude D630, my colleagues have previous versions D610. We are trying to do a simple test of memory leaking however we get a different behaviour of running code. An excerpt of VB code is below:
For i As Integer = 0 To 50
GC.Collect()
Console.Write("Memory= " & GC.GetTotalMemory(False))
'---
Dim objSet As IDataSession = Services.DataSession.NewSession objSet.LoadAll( Of SamplePartner)()'---
GC.Collect()
Console.WriteLine( " -> " & GC.GetTotalMemory( False ))Next
We are repeating - to release all unused memory, to create hundreds of objects, to release memory again.
On D630 the printed memory size used by process is still growing,
on D610 the printed memory size is fixed.
I also tried parameters of garbage collector - gcConcurrent, LatencyMode, server mode - on D630 and the difference is the same.
Can anybody help ?
Thanks in advance
Jindrich
Responses (0)
Solutions (0)
