fork download
  1. using System.IO;
  2. using System.Drawing;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. Image.FromStream(new MemoryStream(new byte[1024]));
  7. }
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/392424/101
Runtime error #stdin #stdout #stderr 0.01s 196224KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x0009b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.CreateFromHandle (System.IntPtr handle) [0x00008] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, System.Boolean keepAlive) [0x00017] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.FromStream (System.IO.Stream stream) [0x00000] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at Program.Main () [0x0000f] in <e74eee48d8414ea7beefa2ed1420d6e2>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x0009b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.CreateFromHandle (System.IntPtr handle) [0x00008] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, System.Boolean keepAlive) [0x00017] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Image.FromStream (System.IO.Stream stream) [0x00000] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at Program.Main () [0x0000f] in <e74eee48d8414ea7beefa2ed1420d6e2>:0