Updating shapelayer values from a separate thread causes a Cross-Thread exception.

Jun 18, 2014 at 5:11 PM
Edited Jun 18, 2014 at 11:36 PM
Is there a way to Invalidate a layer without having it initiate the other events?

it appears that everytime I invalidate and featurelayer it will initiated other events.

IFeatureLayer ifl = (IFeatureLayer)liveLayer;
ifl.AssignFastDrawnStates();
ifl.Invalidate();

I invalidate() from a background worker after updating attributes in the shapefile which causes a Cross-Thread exception when ResetScroll() is called in
DotSpatial.Data.Forms.ScrollingControl.ResetScroll()