mail-archives/mono-list/2005-February/025897.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 &lt;dezelin@gmail.com&gt;
</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 &lt;<A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A>&gt; wrote:
&gt;<i> On 02/21/05 Aleksandar Dezelin wrote:
</I>&gt;<i> &gt; I have a small test application. I run it with the following command:
</I>&gt;<i> &gt; mono --debug --trace=T:System.Exception Test.exe
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; This is what I get displayed in console window:
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; [<A HREF="mailto:skynet@dezelin32">skynet@dezelin32</A> lib]$ mono --debug --trace=T:System.Exception
</I>&gt;<i> &gt; Server.exe --breakonex
</I>&gt;<i> &gt; ENTER: System.Exception:.ctor
</I>&gt;<i> &gt; (string)(this:0x96b7f88[System.OutOfMemoryException Server.exe],
</I>&gt;<i> &gt; [STRING:0x96b8fc0:Out of memory], )
</I>&gt;<i> &gt; LEAVE: System.Exception:.ctor (string)
</I>&gt;<i> [...]
</I>&gt;<i> You can ignore the first few traces: as you can see we just create some
</I>&gt;<i> exception objects, these are not thrown.
</I>&gt;<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.
&gt;<i> &gt; ENTER: System.Exception:.ctor
</I>&gt;<i> &gt; (string)(this:0x9685e00[System.Xml.XmlException Server.exe],
</I>&gt;<i> &gt; [STRING:0x96c1e60:invalid encoding specification.], )
</I>&gt;<i>
</I>&gt;<i> Your real issue is this, most likely, or the next:
</I>&gt;<i>
</I>&gt;<i> &gt; ENTER: System.Exception:.ctor
</I>&gt;<i> &gt; (string)(this:0x9855ea8[System.IndexOutOfRangeException Server.exe],
</I>&gt;<i> &gt; [STRING:0x985aa00:Array index is out of range.], )
</I>&gt;<i>
</I>&gt;<i> An out of range exception.
</I>&gt;<i>
</I>&gt;<i> &gt; How can I see where are those exceptions thrown?
</I>&gt;<i> &gt; Project is compiled with debugging info on.
</I>&gt;<i>
</I>&gt;<i> See the stack trace of the exception that is thrown.
</I>&gt;<i> You can avoid providing an argument to --trace and have the complete
</I>&gt;<i> dump of where the exception was thrown.
</I>&gt;<i>
</I>&gt;<i> lupus
</I>
Many thanks.
Cheers
&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> -----------------------------------------------------------------
</I>&gt;<i> <A HREF="mailto:lupus@debian.org">lupus@debian.org</A> debian/rules
</I>&gt;<i> <A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A> Monkeys do it better
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<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>