private void getCopiedSelectionGeocacheInbackgroundMethod() { try { LiveAPI.Import.ImportGeocaches(_copySelectionDb, _importGeocaches); foreach (string s in _importGeocaches) { var gc = _copySelectionDb.GeocacheCollection.GetGeocache(s); if (gc != null) { gc.Selected = true; } } } catch (Exception e) { Core.ApplicationData.Instance.Logger.AddLog(this, e); } _context.Post(new SendOrPostCallback(delegate(object state) { _dataUpdater.Dispose(); _dataUpdater = null; _importGeocaches.Clear(); _getGeocacheThread = null; _copySelectionDb = null; }), null); }