Apr 23, 2010 at 10:47 AM
Edited Apr 23, 2010 at 11:40 PM
After upgrading to .NET 4 and the most recent trunk of GMap.NET for WPF I've noticed lots of performance 'lag' in my application. I use an external GPS to update my map's center and after starting the Visual studio 2010 profiler I see most of the time
is spent garbage collecting in the ProcessLoadTask method of Internals.Core. Specifically the lines in the finally section:
I've commented these lines out, and all of a sudden, no more lag. My buttons are responsive again, and there doesn't appear to be any memory leaking.
What is the purpose of GC collecting in this method? Am I creating a new problem by removing these lines in my application?
My map is being updated every 0.2 seconds as my GPS is updating at a 5hz frequency.