void RequestGC() { if (gcRequested) return; gcRequested = true; // App.Current.Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action( // delegate { // gcRequested = false; // GC.Collect(); // })); }