Toad World® Forums

Out of Memory Exceptions


#1

Trying to insert one row from an Excel file and got:
System.OutOfMemoryException
Exception of type ‘System.OutOfMemoryException’ was thrown.
Stack Trace:
at System.Collections.Generic.List1.set_Capacity(Int32 value) at System.Collections.Generic.List1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializePropertyAsSimple(XtraPropertyInfoCollection
store, Object obj, PropertyDescriptor prop)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeProperty(XtraPropertyInfoCollection
store, Object obj, SerializablePropertyDescriptorPair pair,
XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at
DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObjectCore(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at

DevExpress.Utils.Serializing.Helpers.CollectionItemSerializationStrategyCollection.AssignItemPropertyValue(XtraPropertyInfo
itemProperty, Object item)
at

DevExpress.Utils.Serializing.Helpers.CollectionItemSerializationStrategy.SerializeCollectionItem(Int32
index, Object item)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeCollection(XtraSerializableProperty
attr, String name, XtraPropertyInfoCollection props, Object owner,
XtraSerializationFlags parentFlags, OptionsLayoutBase options, ICollection list)

at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializePropertyAsCollection(XtraPropertyInfoCollection
store, Object obj, PropertyDescriptor prop, OptionsLayoutBase options,
XtraSerializableProperty attr)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeProperty(XtraPropertyInfoCollection
store, Object obj, SerializablePropertyDescriptorPair pair,
XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at
DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObjectCore(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at

DevExpress.Utils.Serializing.Helpers.CollectionItemSerializationStrategyCollection.AssignItemPropertyValue(XtraPropertyInfo
itemProperty, Object item)
at

DevExpress.Utils.Serializing.Helpers.CollectionItemSerializationStrategy.SerializeCollectionItem(Int32
index, Object item)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeCollection(XtraSerializableProperty
attr, String name, XtraPropertyInfoCollection props, Object owner,
XtraSerializationFlags parentFlags, OptionsLayoutBase options, ICollection list)

at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializePropertyAsCollection(XtraPropertyInfoCollection
store, Object obj, PropertyDescriptor prop, OptionsLayoutBase options,
XtraSerializableProperty attr)
at

DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeProperty(XtraPropertyInfoCollection
store, Object obj, SerializablePropertyDescriptorPair pair,
XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at
DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObjectCore(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object
obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object
obj, OptionsLayoutBase options)
at

DevExpress.Utils.Serializing.Helpers.SerializationContext.SerializeObjectsCore(SerializeHelper
helper, IList objects, OptionsLayoutBase options)
at DevExpress.Utils.Serializing.XtraSerializer.SerializeObjects(Object
rootObject, IList objects, Stream stream, String appName, OptionsLayoutBase
options)
at DevExpress.Utils.Serializing.XtraSerializer.SerializeObjects(XtraObjectInfo[]
objects, Stream stream, String appName)
at DevExpress.XtraBars.BarManager.SaveLayoutCore(XtraSerializer serializer,
Object path)
at DevExpress.XtraBars.BarManager.SaveLayoutToStream(Stream stream)
at Quest.Toad.Gui.MainForm.SaveCustomization(XmlNode root)
at Quest.Toad.Gui.MainForm.SaveSession(SessionSettings session)
at Quest.Toad.Gui.MainForm.MainForm_Closing(Object sender, CancelEventArgs e)
at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at Quest.Toad.Gui.MainForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

I have 1.6gig available RAM and 6gig Page File available.

Did you guys do any smoke testing before releasing this Beta???
Can we revert back to 140 please?
Not being able to import and Memory errors like this makes this Beta 50%
unusable.

Thanks. Regards,
Tom


#2

Mmmnnnnn…pretty ugly error stack. The stack says the application was being
shut down and then ran out of memory.

As you found earlier we are not handling French chars correctly. Can you send
the Excel file that started this issue?

The faster we handle these the better. I’d rather try and get a new Beta
out on Tuesday with fixes. Deal?

Debbie