I have a .NET application that is running out of memory only when I run it in x86 on windows 7 mode with the following exception
8/4/2013 11:36:52 AM: Main application context(1) CriticalError: Exception in Application context Run: Main application context : Parameter is not valid. at System.Drawing.Image.get_Width()
at System.Drawing.Image.get_Size()
at DevExpress.XtraBars.BarItem.IsSameSize(Image old, Image newImage)
at DevExpress.XtraBars.BarItem.set_Glyph(Image value)
at NordicIT.Mark5.Module.DM.Editor.frmEditorRibbon..ctor()
at NordicIT.Mark5.Module.DM.Editor.frmEditorRibbon..ctor(IEditFormForBOOptions editFormForBOOptions)
at NordicIT.Mark5.Module.DM.Actions.TDMActions.<>c__DisplayClass19.<_DocumentTransmitProcess>b__17()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
The memory consumption is around 400 mb, GDI Objects consumed around 1500(I have increased the limit of these in the registry so should not be any problem to go to around 10000 ).
When I run the same application in Windows server 2008 R2 in x86 i have no problem(it should have the same kernel as windows 7), in windows xp in x86 also no problem.
I never have an exception in x64 mode even if I go with the memory up to 2 gb.
Please help me to understand which limitation in terms of memory I am reaching.
Parameter is not valid.ArgumentException