mail-archives/mono-bugs/2004-June/016770.html

104 строки
4.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 59629][Wis] New - NullReferenceException when getting event of emitted type
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016769.html">
<LINK REL="Next" HREF="016772.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 59629][Wis] New - NullReferenceException when getting event of emitted type
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 59629][Wis] New - NullReferenceException when getting event of emitted type">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Sat, 5 Jun 2004 08:41:54 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="016769.html">[Mono-bugs] [Bug 59485][Wis] Changed - Crash/Exception when using threads and WebRequest
</A></li>
<LI> Next message: <A HREF="016772.html">[Mono-bugs] [Bug 59629][Wis] Changed - NullReferenceException when getting event of emitted type
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16770">[ date ]</a>
<a href="thread.html#16770">[ thread ]</a>
<a href="subject.html#16770">[ subject ]</a>
<a href="author.html#16770">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:gert.driesen@pandora.be.">gert.driesen@pandora.be.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59629">http://bugzilla.ximian.com/show_bug.cgi?id=59629</A>
--- shadow/59629 2004-06-05 08:41:54.000000000 -0400
+++ shadow/59629.tmp.9239 2004-06-05 08:41:54.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 59629
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:gert.driesen@pandora.be">gert.driesen@pandora.be</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException when getting event of emitted type
+
+When getting the events of a Type that was emitted at runtime, the
+following exception is reported :
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in (unmanaged) (wrapper managed-to-native)
+System.MonoType:GetEvents_internal (S
+ystem.Reflection.BindingFlags,System.Type)
+in &lt;0x00004&gt; (wrapper managed-to-native)
+System.MonoType:GetEvents_internal (Sys
+tem.Reflection.BindingFlags,System.Type)
+in &lt;0x00010&gt; System.MonoType:GetEvents (System.Reflection.BindingFlags)
+in &lt;0x00016&gt; System.Type:GetEvents ()
+in &lt;0x001fd&gt; ReflectionEmit.EntryPoint:Main (string[])
+
+I attached a repro for this issue.
+
+Running this on MS.NET returns :
+
+Number of events in emitted Type: 1
+
+There appears to be a bug in ves_icall_Type_GetEvents_internal in icall.c
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016769.html">[Mono-bugs] [Bug 59485][Wis] Changed - Crash/Exception when using threads and WebRequest
</A></li>
<LI> Next message: <A HREF="016772.html">[Mono-bugs] [Bug 59629][Wis] Changed - NullReferenceException when getting event of emitted type
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16770">[ date ]</a>
<a href="thread.html#16770">[ thread ]</a>
<a href="subject.html#16770">[ subject ]</a>
<a href="author.html#16770">[ author ]</a>
</LI>
</UL>
</body></html>