Reach Your Goal

by Vonni

Downloads: 8,105 (39) • Reviews: 16

Version:

1.0.040222

Updated:

Mar 7, 2015

Error messages

Error messages

Postby Keeby » Wed Feb 06, 2013 6:18 am

I've been getting a few error messages recently that mention Activity Documentation. I've attached a screenshot of the latest one.

Error-1.jpg
Error-1.jpg (208.63 KiB) Viewed 3005 times
Keeby
Donated!
Donated!
 
Posts: 26
Joined: Thu Apr 29, 2010 6:55 am
Location: Nottinghamshire, UK

Re: Error messages

Postby old_man_biking » Wed Feb 06, 2013 8:56 am

Moved the previous post from the plugin specific board to the general "Bugs" board.
The AD plugin just catches the Error that is caused elsewhere, according to the stack trace by Reach Your Goals plugin .

@Vonni: this type of error typically happens, when one of your Controls listens to events and these events are fired by a background thread.
A typical solution to harden your controls looks like that:
Code: Select all
private void ObservedObject_XYHasChanged(object sender, EventArgs e)
{
    // I might be called from a background thread
    if (InvokeRequired)
        Invoke((EventHandler)ObservedObject_XYHasChanged, sender, e);
    else
        ... // this code is executed in the thread that has created the control
}
old_man_biking
Donated!
Donated!
 
Posts: 6513
Joined: Mon May 28, 2007 8:07 am
Location: Munich, Germany


Return to Reach Your Goal

Who is online

Users browsing this forum: No registered users and 0 guests