[Mono-list] Does GMCS support the default constructor constraint?
(null ref excep.)
Ben Joldersma
bennidhamma at gmail.com
Mon Mar 20 01:46:53 EST 2006
Hello all, I'm trying to compile my .net 2.0 application to mono 1.1.13.4.
I'm getting the following error from nant (I'm using the latest binary.)
My project builds corrrectly with .net 2.0. There are several places in my
project were I require the new() constraint. Any suggestions would be much
appreciated!
--ben
Build exception:
[csc] Compiling 90 files to 'C:\Documents and Settings\Ben\My
Documents\Kozmical\Kozmical.dll'
.
[csc] Unhandled Exception: System.NullReferenceException: Object
reference not set to an insta
nce of an object
[csc] in <0x0009a> Mono.CSharp.ConstraintChecker:HasDefaultConstructor(
Mono.CSharp.EmitContex
t ec, System.Type atype)
[csc] in <0x00486> Mono.CSharp.ConstraintChecker:CheckConstraints (
Mono.CSharp.EmitContext ec,
Int32 index)
[csc] in <0x00018> Mono.CSharp.ConstraintChecker:CheckConstraints (
Mono.CSharp.EmitContext ec)
[csc] in <0x00035> Mono.CSharp.ConstraintChecker:CheckConstraints (
Mono.CSharp.EmitContext ec,
System.Type gt, System.Type[] gen_params, System.Type[] atypes, Location
loc)
[csc] in <0x0001a> Mono.CSharp.ConstructedType:CheckConstraints (
Mono.CSharp.EmitContext ec)
[csc] in <0x0016c> Mono.CSharp.Expression:ResolveAsTypeTerminal (
Mono.CSharp.EmitContext ec, B
oolean silent)
[csc] in <0x00010> Mono.CSharp.Expression:ResolveAsTypeTerminal (
Mono.CSharp.EmitContext ec)
[csc] in <0x00069> Mono.CSharp.MemberBase:get_MemberType ()
[csc] in <0x0002d> Mono.CSharp.FieldMember:Define ()
[csc] in <0x0001f> Mono.CSharp.Field:Define ()
[csc] in <0x00059>
Mono.CSharp.TypeContainer+MemberCoreArrayList:DefineContainerMembers ()
[csc] in <0x00014> Mono.CSharp.TypeContainer:DefineContainerMembers (
Mono.CSharp.MemberCoreArr
ayList mcal)
[csc] in <0x002ed> Mono.CSharp.TypeContainer:DoDefineMembers ()
[csc] in <0x0004a> Mono.CSharp.TypeContainer:DefineMembers ()
[csc] in <0x0023c> Mono.CSharp.RootContext:PopulateTypes ()
[csc] in <0x009b1> Mono.CSharp.Driver:MainDriver (System.String[]
args)
[csc] in <0x00051> Mono.CSharp.Driver:Main (System.String[] args)
BUILD FAILED - 0 non-fatal error(s), 19 warning(s)
C:\Documents and Settings\Ben\My Documents\Kozmical\kozmical.build(9,10):
External Program Failed: C:\Program Files\Mono-
1.1.13.4\lib\mono/2.0/gmcs.exe (return code was 1)
Total time: 2.2 seconds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060319/73c00a74/attachment.html
More information about the Mono-list
mailing list