I opened a large C# file (~16Mb) and this exception was thrown.
The code was generated automatically from xml schema, hence it's large size all in one file. However, the code is fine as it can be opened OK with other editors.
SharpDevelop Version : 2.2.1.2648
.NET Version : 2.0.50727.832
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : English (United Kingdom) (en-GB)
Current UI language : en-US
Working Set Memory : 938560kb
GC Heap Memory : 870918kb
Exception thrown:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[ args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[ args)
at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.STAThreadCaller.Call(Delegate method, Object[ arguments)
at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.SafeThreadFunction[R](Func`1 method)
at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper.get_Text()
at ICSharpCode.SharpDevelop.ParserService.ParserUpdateStep()
at ICSharpCode.SharpDevelop.ParserService.ParserUpdateThread()