Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Object reference not set to an instance of an object

$
0
0

`try {

                System.IO.MemoryStream stream = new System.IO.MemoryStream();

                _Image.Compress(Bitmap.CompressFormat.Png, 0, stream);
                bitmapData = stream.ToArray();
                }catch (NullReferenceException err) {

                    Console.WriteLine(err.Message);
                }`

Please anyone can tell me why I got the error in subject ? _Image is bitmap object and It's not null. Thanks, Max.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>