oTAMAKOo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Call to Google.GData.Client.AsyncDataHandler.CancelAsync() crashes the application #453

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call Google.GData.Client.StreamSendStreamAsync() from UI (main) thread
2. Wait for a while 
3. Call Google.GData.Client.AsyncDataHandler.CancelAsync() from the same thread

What do you see instead?
Google.GData.Client.GDataGAuthRequest catches the exception of type 
System.Net.WebException {"The request was aborted: The request was canceled."} 
and throws it to the caller in the context of background thread.

What is the expected output? 
Exception is processed, cancellation is recognized,  
AsyncDataHandler.AsyncOperationCompleted event is raised 
(AsyncCompletedEventArgs.Cancelled:=true)

What version of the product are you using? 
.NET library for Google Data API 1.7.0.1

On what operating system?
Windows7 x64

Original issue reported on code.google.com by smarthru...@gmail.com on 14 Dec 2010 at 2:12

Attachments:

GoogleCodeExporter commented 8 years ago
.NET library for Google Data API is OK. 
Please, remove the issue.

After the detailed investigation, the second exception was found in UI thread, 
which wasn't caught by debugger.

Original comment by smarthru...@gmail.com on 15 Dec 2010 at 6:36

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 22 Dec 2010 at 11:10