alex1_0_1 (1) [Avatar] Offline
#1
I have a process which causes Virtual Bytes counter to constantly increase (to the point that the program throws an OutOfMemory exception), but Private Bytes are not increasing. Is there anything I can do to trigger virtual memory collection? GC.Collect is obviously not helping.
jon.skeet (451) [Avatar] Offline
#2
Re: virtual memory defragmentation
I'm afraid I really don't know - other than to suggest you use a profiler. As this question isn't directly related to the book, I suggest you ask on a more general programming forum, such as StackOverflow.