I have a Run(string, string[]) function that I want to run in a separate thread, so I use the delegate and BeginInvoke :
private Func<string, string[], Stack<StackItem>> runner; public MainPage() { runner = Run; } private void btnStep_Click(object sender, RoutedEventArgs e) {
However, I get a NotSupportedException was unhandled by user code with the message Specified method is not supported for the BeginInvoke() method. What's wrong?
I am using Silverlight 4.0 and VS2010.
source share