View Single Post

  #6 (permalink)  
Old 05-25-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

If you have a null exception in the bitmap line, then I assume render.GetMap(spec); did not return an array, so you have always to do a check if it is uncertain what the function return. in this case something like this you should code:

Code:
            if (mapImgs != null && mapImgs.Length > 0)
                Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImgs[0].MimeData.Bits));
I got your mail but I cannot compile it as it contains many things I dont have. sorry.
Reply With Quote