StackOverFlow Exception while Writing the Object Graph in to XAML
Posted
by
Jose
on Stack Overflow
See other posts from Stack Overflow
or by Jose
Published on 2010-12-31T11:50:06Z
Indexed on
2010/12/31
11:54 UTC
Read the original article
Hit count: 268
I am trying to Write an object stream into a XAML file but i end up in StackoverFlowException . In the CallStack i could see "The maximum number of stack frames supported by Visual Studio has been exceeded"
This is the piece of code i'm trying to execute.
StreamWriter xamlStream =new StreamWriter(File.OpenWrite("a.xaml"));
string myXaml = System.Windows.Markup.XamlWriter.Save(objectInstance);
xamlStream.Write(myXaml);
Thanks ...!
© Stack Overflow or respective owner