编译我有一个正在运行的内存只有当我与以下异常内存溢出异常时,应用在86
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)
的内存消耗在Windows上运行它的x86 7模式下的.NET应用程序大约是400 mb,GDI对象在1500左右消耗(我已经增加了注册表中的这些限制,所以不应该有任何问题需要大约10000)。
当我在x86中运行Windows Server 2008 R2中的相同应用程序时,我没有任何问题(它应该与Windows 7具有相同的内核),在x86中的Windows XP中也没有问题。
即使我的内存高达2 GB,我从来没有在x64模式下出现异常。
请帮我理解我在达到的内存方面的限制。
回溯没有说任何关于内存问题 - 它说“参数无效”。 –
以及您处理图像时,在WPF中使用大或高分辨率图像时,这会非常复杂。我想这背后的图像是一个相当大的决议? WPF总是有问题 – Venson
它似乎是'ArgumentException' –