Hi
I'm using version 1.4.2.1 of SandBar. I perform a number of operations that update the text on the status bar. The operations are executed on a background thread. When the background thread completes, I fire an event, the form containing the status bar intercepts the event and marshalls the text updates onto the UI thread by evaluating InvokeRequired as follows:
private
void OnOperationComplete(object sender, EventArgs e) {
if (InvokeRequired) {
Invoke(new EventHandler(OnOperationComplete));
}
else {
statusBarItem.Text = "Complete!";
statusBar.Refresh();
}
}
I'm not sure why I get this error: "Object is currently in use elsewhere". The status bar ends up with a big red x through it...
Hope someone can help.
Craig