private static void HandleException(Exception e)
{
System.Xml.Serialization.XmlSerializer xs = new
System.Xml.Serialization.XmlSerializer(typeof(Syst em.Exception));
using (System.IO.StreamWriter log = System.IO.File.CreateText("game.log"))
{
xs.Serialize(log.BaseStream, e);
}
}
does not work, I get an Exception:
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.xml.dll
Additional information: There was an error reflecting type
'System.Exception'.
Iam not even sure if serialisation is the right way to go. I simple want to
see all information in the Exception (I cannot use Debugger because the app
runs in fullscreen).
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk