зеркало из https://github.com/mono/mail-archives.git
113 строки
4.6 KiB
HTML
113 строки
4.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] Tracing thrown exceptions on application start
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:Aleksandar%20Dezelin%20%3Cdezelin%40gmail.com%3E">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="025894.html">
|
|
<LINK REL="Next" HREF="025914.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] Tracing thrown exceptions on application start
|
|
</H1>
|
|
<B>Aleksandar Dezelin
|
|
</B>
|
|
<A HREF="mailto:Aleksandar%20Dezelin%20%3Cdezelin%40gmail.com%3E"
|
|
TITLE="[Mono-list] Tracing thrown exceptions on application start">Aleksandar Dezelin <dezelin@gmail.com>
|
|
</A><BR>
|
|
<I>Mon, 21 Feb 2005 16:57:29 +0100</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="025894.html">[Mono-list] Tracing thrown exceptions on application start
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025914.html">[Mono-list] Problem with Oracle and Mono Charset...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25897">[ date ]</a>
|
|
<a href="thread.html#25897">[ thread ]</a>
|
|
<a href="subject.html#25897">[ subject ]</a>
|
|
<a href="author.html#25897">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Mon, 21 Feb 2005 16:45:06 +0100, Paolo Molaro <<A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A>> wrote:
|
|
><i> On 02/21/05 Aleksandar Dezelin wrote:
|
|
</I>><i> > I have a small test application. I run it with the following command:
|
|
</I>><i> > mono --debug --trace=T:System.Exception Test.exe
|
|
</I>><i> >
|
|
</I>><i> > This is what I get displayed in console window:
|
|
</I>><i> >
|
|
</I>><i> > [<A HREF="mailto:skynet@dezelin32">skynet@dezelin32</A> lib]$ mono --debug --trace=T:System.Exception
|
|
</I>><i> > Server.exe --breakonex
|
|
</I>><i> > ENTER: System.Exception:.ctor
|
|
</I>><i> > (string)(this:0x96b7f88[System.OutOfMemoryException Server.exe],
|
|
</I>><i> > [STRING:0x96b8fc0:Out of memory], )
|
|
</I>><i> > LEAVE: System.Exception:.ctor (string)
|
|
</I>><i> [...]
|
|
</I>><i> You can ignore the first few traces: as you can see we just create some
|
|
</I>><i> exception objects, these are not thrown.
|
|
</I>><i>
|
|
</I>
|
|
Ok. Those exceptions must exist in case there's no memory left for the
|
|
runtime to create them at the time they're thrown.
|
|
|
|
><i> > ENTER: System.Exception:.ctor
|
|
</I>><i> > (string)(this:0x9685e00[System.Xml.XmlException Server.exe],
|
|
</I>><i> > [STRING:0x96c1e60:invalid encoding specification.], )
|
|
</I>><i>
|
|
</I>><i> Your real issue is this, most likely, or the next:
|
|
</I>><i>
|
|
</I>><i> > ENTER: System.Exception:.ctor
|
|
</I>><i> > (string)(this:0x9855ea8[System.IndexOutOfRangeException Server.exe],
|
|
</I>><i> > [STRING:0x985aa00:Array index is out of range.], )
|
|
</I>><i>
|
|
</I>><i> An out of range exception.
|
|
</I>><i>
|
|
</I>><i> > How can I see where are those exceptions thrown?
|
|
</I>><i> > Project is compiled with debugging info on.
|
|
</I>><i>
|
|
</I>><i> See the stack trace of the exception that is thrown.
|
|
</I>><i> You can avoid providing an argument to --trace and have the complete
|
|
</I>><i> dump of where the exception was thrown.
|
|
</I>><i>
|
|
</I>><i> lupus
|
|
</I>
|
|
Many thanks.
|
|
|
|
Cheers
|
|
|
|
><i>
|
|
</I>><i> --
|
|
</I>><i> -----------------------------------------------------------------
|
|
</I>><i> <A HREF="mailto:lupus@debian.org">lupus@debian.org</A> debian/rules
|
|
</I>><i> <A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A> Monkeys do it better
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>><i>
|
|
</I>
|
|
|
|
--
|
|
Linux is like wighwam, no windows no gates and apache inside...
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="025894.html">[Mono-list] Tracing thrown exceptions on application start
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025914.html">[Mono-list] Problem with Oracle and Mono Charset...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25897">[ date ]</a>
|
|
<a href="thread.html#25897">[ thread ]</a>
|
|
<a href="subject.html#25897">[ subject ]</a>
|
|
<a href="author.html#25897">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|