I think this is because the allocator somewhere bites most of the memory. He will use it for several objects. Try to do:
GetTotalMemory(); Titles t = Titles.Dr; GetTotalMemory(); Titles t2 = Titles.Mr; GetTotalMemory();
and see what happens.
this is what I see, and GetTotalMemory () is not so innocent:
GetTotalMemory(); Titles t = Titles.Dr; GetTotalMemory();
outputs:
12828 19484
and this:
GetTotalMemory();
outputs:
12828 19484
in fact, you should not pay attention to small fluctuations in free memory:
Then he tells them: therefore, to Caesar what Caesar is; and to God the things that are God's
:)
Andrey
source share