[Mono-bugs] [Bug 496138] New: [PATCH] Mono not converting native COM exceptions (HResults) to C# Exceptions correctly.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Apr 17 13:53:43 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=496138
Summary: [PATCH] Mono not converting native COM exceptions
(HResults) to C# Exceptions correctly.
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tom_hindle at sil.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=286562)
--> (http://bugzilla.novell.com/attachment.cgi?id=286562)
Adds special handling for E_INVALIDARG and E_OUTOFMEMORY in GetExceptionForHR
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8)
Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8
For example when call to a native COM object returns E_INVALIDARG
GetExceptionForHR in Marshal.cs converts this to a COMException with
E_INVALIDARG as its error code.
NET converts it to an ArgumentException.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
This method needs lots more work.
Problem is I don't have a list which maps COM HResults (E_*) to C# Exceptions.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list