this code causes silverlight to hang. If I remove the ManualResetEvent code, nothing happens
private ManualResetEvent mre = new ManualResetEvent(false);
...
WebClient sender = new WebClient();
sender. += new OpenReadCompletedEventHandler(this.ReadComplete);
sender.OpenReadAsync(new Uri(this.url+"?blob="+BODY, UriKind.Relative));
mre.WaitOne();
}
public bool T = false;
public void ReadComplete(object sender, OpenReadCompletedEventArgs e)
{
mre.Set();
}