alex1_0_1 (1) [Avatar] Offline
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 (483) [Avatar] Offline
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.