Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Insufficient memory to continue the execution of the program.
 

Insufficient memory to continue the execution of the program.

Hello,

I am having a problem with my program when I try to debug it. A message box pops up that says "Insufficient memory to continue the execution of the program" and then another one periodically pops up that says something about EndToken that I didn't copy down. Then a Save File window comes up trying to save the Form1.resx file--I've clicked Cancel and did not save it. When I tried to view the Designer a error help window displays instead and the Call Stack shows:

Instances of this error (1)
1.
at System.Runtime.InteropServices.Marshal.AllocCoTaskMem(Int32 cb)
at Microsoft.VisualStudio.Shell.Design.Serialization.DocDataTextReader.get_Text()
at Microsoft.VisualStudio.Shell.Design.Serialization.DocDataTextReader.Read(Char[] buffer, Int32 index, Int32 count)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.InitTextReaderInput(String baseUriStr, TextReader input)
at System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input, XmlNameTable nt)
at System.Xml.XmlTextReader..ctor(TextReader input)
at System.Resources.ResXResourceReader.EnsureResData()
at System.Resources.ResXResourceReader.GetMetadataEnumerator()
at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetMetadata()
at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetMetadataEnumerator()
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertiesFromResources(IDesignerSerializationManager manager, Object value, Attribute[] filter)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

This is basically my first C# program so I'm not too familiar with the depths of C# but any help would be appreciated.

Thanks,

Palmer421  Wednesday, December 10, 2008 10:10 PM
Hi Palmer,

Welcome to MSDN.

I cannot locate the problem justbase on the error message you have post. I need more information about it.

1. What are the function your application made for?
2. What controls and class did you use in your application?
3. What function cause the error? You can put a break point to run your application in debug mode and tell me the error method.
4. Please show some code related to the error message.
5. What version of .Net Framework and Visual Studio did you use?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Friday, December 12, 2008 5:36 AM
We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

Best Regards
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, December 17, 2008 2:28 AM

You can use google to search for other answers

Custom Search

More Threads

• shaping windows forms in VB 05
• Build of project reloads User Controls in Toolbox every time.
• TextBox with Advanced AutoSugestionWondow
• Resize form
• Runtime resize handles
• Ensuring minimum size of UserControl
• Extending the TextBox
• C# Winform and adding a button to the titlebar
• Cannot Make Changes to Forms via Designer: "Error HRESULT E_FAIL has been returned from a call to a COM component."
• Create custom UI type editor for control property ?