This project is read-only.

How to make a thread-safe call from extension to Positioning libraries

Dec 18, 2012 at 8:31 AM

Hello All,

I am doing something I do not normally do, but I was wondering if anyone else knew of a way to make a thread-safe call from an extension to the positioning libraries?

Such as creating a "Detect Devices" SimpleActionItem on the ribbon control, and having that call Devices::BeginDetection ?

It is returning this error message:

"Cross-thread operation not valid: Control 'ribbonStatusBar' accessed from a thread other than the thread it was created on." - inside of OnDeviceDetectionStarted() in Dotspatial.Positioning.Core.Devices.

I do not have a form within the extension to call BeginInvoke. 


I wanted to know if there is any other ideas? Am I missing something here?