[Mono-dev] Could this be a bug in gmcs?
Valentin Sawadski
valentin.sawadski at gmx.de
Fri Aug 31 07:29:52 EDT 2007
Hello,
I've tried to port NClass to Mono and ran into a very odd error message:
[csc] Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
[csc] at Mono.CSharp.Argument.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Invocation.EmitArguments (Mono.CSharp.EmitContext ec, System.Reflection.MethodBase mb, System.Collections.ArrayList arguments, Boolean dup_args, Mono.CSharp.LocalTemporary this_arg) [0x00000]
[csc] at Mono.CSharp.Invocation.EmitCall (Mono.CSharp.EmitContext ec, Boolean is_base, Mono.CSharp.Expression instance_expr, System.Reflection.MethodBase method, System.Collections.ArrayList Arguments, Location loc, Boolean dup_args, Boolean omit_args) [0x00000]
[csc] at Mono.CSharp.PropertyExpr.EmitAssign (Mono.CSharp.EmitContext ec, Mono.CSharp.Expression source, Boolean leave_copy, Boolean prepare_for_load) [0x00000]
[csc] at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean is_statement) [0x00000]
[csc] at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.EmptyCast.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Binary.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Return.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000]
[csc] at Mono.CSharp.EmitContext.EmitResolvedTopBlock (Mono.CSharp.ToplevelBlock block, Boolean unreachable) [0x00000]
[csc] at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md, Mono.CSharp.ToplevelBlock block) [0x00000]
[csc] at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000]
[csc] at Mono.CSharp.Method.Emit () [0x00000]
[csc] at Mono.CSharp.TypeContainer.EmitType () [0x00000]
[csc] at Mono.CSharp.RootContext.EmitCode () [0x00000]
[csc] at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
[csc] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
For the record: I used 1.2.5 to build this. With 1.2.4 this exception
did not occur because NClass used 2.0 members of Winforms which were not
implemented in 1.2.4.
If this information is not helpful enough please contact me and tell me
how to retrieve more useful information.
Kind Regards,
Valentin S.
More information about the Mono-devel-list
mailing list