AnsweredAssumed Answered

Thread Error

Question asked by sonj on Aug 24, 2018

Importing large files into FGDB and working fine. Trying to use Thread to update UI but it throwing an error at InsertFeature.

 

Error Description: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

 

Thread t = new Thread(geodb.DoBatchProcess);

t.SetApartmentState(ApartmentState.STA);

t.Priority = ThreadPriority.Highest;

........

UpdateFeatureBufferFields(featurebuffer, FeatureDetails);

featurecursor.InsertFeature(featurebuffer);

Outcomes