[Mono-bugs] [Bug 444811] New: Internal Compiler Error using Declare Function
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 13 15:42:55 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=444811
Summary: Internal Compiler Error using Declare Function
Product: Mono: Compilers
Version: SVN
Platform: i386
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: ciaran at ciarang.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
It seems that using Declare Function (instead of DllImport) to define an
external function causes the compiler to trip up because a default value
doesn't get set for the charset translation that would normally be specified as
a DLLImport attribute.
The exception comes from the Case Else in the following code, which is from
members/ExternalSubDeclaration.vb line 106:
Select Case m_CharsetModifier
Case KS.Auto
attrib.AttributeArguments.VariablePropertyInitializerList.Add("CharSet",
System.Runtime.InteropServices.CharSet.Auto)
Case KS.Unicode
attrib.AttributeArguments.VariablePropertyInitializerList.Add("CharSet",
System.Runtime.InteropServices.CharSet.Unicode)
Case KS.Ansi
attrib.AttributeArguments.VariablePropertyInitializerList.Add("CharSet",
System.Runtime.InteropServices.CharSet.Ansi)
Case Else
Throw New InternalException
End Select
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list