System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?

  1. #1
    Join Date
    Aug 2008
    Posts
    54

    System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?

    I modeled an aircraft in Blender (people learning WPF should know this program, I use it to create 3d things). Then I export it to XAML, ahh more than 25Mb actually
    Then I opened it using Visual Studio XAML editor and the Exception occured, how to fix this ?? I want to put this nice aircraft in my WPF program
    Share on Google+

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,873

    Re: System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?

    What OS, how much memory in the pc, and how much free space all figure into out of memory exception errors.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
    Share on Google+

  3. #3
    Join Date
    Aug 2008
    Posts
    54

    Re: System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?

    I use Server 2008 with 2gb of RAM, I can even load my 'aircraft' onto my app but it keep warning the exception, it's too annoying. How to get rid of that ? Thanks anyway
    Share on Google+

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,959

    Re: System.OutOfMemoryException when loading a heavy XAML file, how to fix this ?

    You could break the generated xaml into separate xaml 'controls' and reassemble it.

    I haven't seen the generated xaml, but perhaps there is a fair amount of duplication that can be factored out.
    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center