CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  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

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    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!

  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

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

    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.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured