SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Unhandled Exception - OutOfMemoryException

Last post 01-01-2008 2:23 PM by sprocketonline. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-18-2007 12:36 PM

    Unhandled Exception - OutOfMemoryException

    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()

  • 12-18-2007 1:35 PM In reply to

    Re: Unhandled Exception - OutOfMemoryException

    I think I can safely categoize this bug as "won't fix".

    Chris 

  • 12-18-2007 1:50 PM In reply to

    Re: Unhandled Exception - OutOfMemoryException

    Well, the memory consumption when opening large files should be improved... currently SharpDevelop allocates about 25MB per second for such a file. The application runs out of memory (due to a fragmented large object heap) before the garbage collector even gets a chance to run.

    Daniel Grunwald
  • 01-01-2008 2:23 PM In reply to

    Re: Unhandled Exception - OutOfMemoryException

    Perhaps large files should be handled differently, so that they don't invoke the large memory consumption?

    Or as you suggest, a more memory efficient method could be used. 

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.