R
rory.groves
Got a basic form with a single PictureBox control.
The image has these properties:
Filesize: 55kb
Width: 4000px
Height: 2500px
Yes, the dimensions are large, but its a 2-color image and very small
in size. Why would it throw that error? The included Image Browser
works just fine, with image filesizes much larger (200-500kb).
Here's the exact error:
System.OutOfMemoryException was unhandled
Message="OutOfMemoryException"
StackTrace:
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalInvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Resources.ResourceReader.CreateResource()
at System.Resources.ResourceReader.LoadBitmap()
at System.Resources.ResourceReader.LoadObjectV2()
at System.Resources.ResourceReader.LoadObject()
at System.Resources.RuntimeResourceSet.GetObject()
at System.Resources.ResourceManager.GetObject()
at System.Resources.ResourceManager.GetObject()
at SampleApp.Form1.InitializeComponent()
at SampleApp.Form1..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalInvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Activator.CreateInstance()
at MyForms.Create__Instance__()
at MyForms.get_Form1()
at SampleApp.Form1.Main()
The image has these properties:
Filesize: 55kb
Width: 4000px
Height: 2500px
Yes, the dimensions are large, but its a 2-color image and very small
in size. Why would it throw that error? The included Image Browser
works just fine, with image filesizes much larger (200-500kb).
Here's the exact error:
System.OutOfMemoryException was unhandled
Message="OutOfMemoryException"
StackTrace:
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalInvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Resources.ResourceReader.CreateResource()
at System.Resources.ResourceReader.LoadBitmap()
at System.Resources.ResourceReader.LoadObjectV2()
at System.Resources.ResourceReader.LoadObject()
at System.Resources.RuntimeResourceSet.GetObject()
at System.Resources.ResourceManager.GetObject()
at System.Resources.ResourceManager.GetObject()
at SampleApp.Form1.InitializeComponent()
at SampleApp.Form1..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalInvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Activator.CreateInstance()
at MyForms.Create__Instance__()
at MyForms.get_Form1()
at SampleApp.Form1.Main()