The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (483) [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.