[mono-android] Stacktrace generated from System.IO.Stream.CopyTo with 1.9.2
HSSoftware
david at headstandsoftware.com
Fri Nov 18 07:49:18 EST 2011
*This is probably related to other stream issues reported, but it would be
very interesting to know why a 'Stacktrace:' is being generated at line 282
of System.IO.Stream.cs (in 1.9.2).*
Again, I am repeatedly downloading images from the web, and saving each to a
file (not SQLite DB anymore). The stacktrace occurs while I am copying from
a MemoryStream to a FileStream, using the CopyTo method.
I have scoured the HTTPWebRequest, response, and stream, and clean up loose
ends. And still I get this stream-related error.
Any ideas?
-----------------------------------------------------------------------------------------
11-18 06:37:30.742: I/mono(5641): Stacktrace:
11-18 06:37:30.742: I/mono(5641): at System.IO.Stream.CopyTo
(System.IO.Stream,int) [0x0004f] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/System.IO/Stream.cs:282
11-18 06:37:30.742: I/mono(5641): at System.IO.Stream.CopyTo
(System.IO.Stream) [0x00000] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/System.IO/Stream.cs:268
11-18 06:37:30.742: I/mono(5641): at Aakf.Database.FileCache.SaveImage
(string,System.IO.Stream) [0x00021] in
C:\Dev\xxx\AAKF\AAKF\Database\FileCache.cs:151
11-18 06:37:30.742: I/mono(5641): at Aakf.Database.FileCache.SaveWorkImage
(int,System.IO.Stream) [0x00001] in
C:\Dev\xxx\AAKF\AAKF\Database\FileCache.cs:131
11-18 06:37:30.742: I/mono(5641): at
Aakf.Show.DownloadImagesAsyncTask.ProcessWorkNew
(AakfBiz.DataObjects.WorkObj,int) [0x00052] in
C:\Dev\xxx\AAKF\AAKF\Show\DownloadImagesAsyncTask.cs:145
11-18 06:37:30.742: I/mono(5641): at
Aakf.Show.DownloadImagesAsyncTask.DoInBackground (Java.Lang.Object[])
[0x000bc] in C:\Dev\xxx\AAKF\AAKF\Show\DownloadImagesAsyncTask.cs:63
11-18 06:37:30.742: I/mono(5641): at
Android.OS.AsyncTask.n_DoInBackground_arrayLjava_lang_Object_
(intptr,intptr,intptr) [0x0001f] in
/home/jpobst/Desktop/monodroid/Mono.Android/platforms/android-8/src/generated/Android.OS.AsyncTask.cs:100
11-18 06:37:30.742: I/mono(5641): at (wrapper dynamic-method)
object.1ea304e7-26af-4d7b-a580-1551d8b003da (intptr,intptr,intptr) <IL
0x00012, 0x0003b>
11-18 06:37:30.742: I/mono(5641): at (wrapper native-to-managed)
object.1ea304e7-26af-4d7b-a580-1551d8b003da (intptr,intptr,intptr) <IL
0x00021, 0xffffffff>
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Stacktrace-generated-from-System-IO-Stream-CopyTo-with-1-9-2-tp5004192p5004192.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list