I am having INTERMITTENT trouble with Drawable.CreateFromStream returning a
null. My code retrieves an image file off the web, stores it into a
MemoryStream, and then makes the call to Drawable.CreateFromStream passing
the memory stream.

Sometimes, with the same image, that call will work, and sometimes it will
return a null. I double check the MemoryStream in both case with a checksum,
and it appears to be identical in both calls.

Is it a memory issue, not-thread-safe issue, or what? Anyone else have
issues with this?

I saw some Android postings about this, but they seem related to buffering
input streams.

And to be clear, I do NOT get an Exception on the call to
Drawable.CreateFromStream.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Drawable-CreateFromStream-returning-null-tp4968597p4968597.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to