[Mono-list] compiler error
nelson
NOnelsonSPAM@moz.kpanic.com.ar
20 Nov 2002 00:00:34 -0300
Hi,
I'm compiling csharp code and have the following error.
How can trace the problem?... is a compiler error? or is my fault?
TIA
:: Nelson ::
Unhandled Exception: System.Exception: non-static FieldExpr without
instance var
You have to assign the Instance variable
Of the FieldExpr to set this
in <0x00062> 00 Mono.CSharp.FieldExpr:DoResolve
(Mono.CSharp.EmitContext)
in <0x007c9> 00 Mono.CSharp.MemberAccess:DoResolve
(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.ResolveFlags)
in <0x0001b> 00 Mono.CSharp.MemberAccess:DoResolve
(Mono.CSharp.EmitContext)
in <0x00150> 00 Mono.CSharp.Expression:Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
in <0x00099> 00 Mono.CSharp.MemberAccess:DoResolve
(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.ResolveFlags)
in <0x0001b> 00 Mono.CSharp.MemberAccess:DoResolve
(Mono.CSharp.EmitContext)
in <0x00150> 00 Mono.CSharp.Expression:Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
in <0x00076> 00 Mono.CSharp.Invocation:DoResolve
(Mono.CSharp.EmitContext)
in <0x00150> 00 Mono.CSharp.Expression:Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
in <0x00021> 00 Mono.CSharp.Binary:DoResolve (Mono.CSharp.EmitContext)
in <0x00150> 00 Mono.CSharp.Expression:Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
in <0x000e9> 00 Mono.CSharp.Argument:Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.Location)
in <0x0036b> 00 Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext)
in <0x00125> 00 Mono.CSharp.FieldBase:GetInitializerExpression
(Mono.CSharp.EmitContext)
in <0x00144> 00 Mono.CSharp.TypeContainer:EmitFieldInitializers
(Mono.CSharp.EmitContext)
in <0x00241> 00 Mono.CSharp.Constructor:Emit (Mono.CSharp.TypeContainer)
in <0x0015f> 00 Mono.CSharp.TypeContainer:Emit ()
in <0x004da> 00 Mono.CSharp.RootContext:EmitCode ()
in <0x00732> 00 Mono.CSharp.Driver:MainDriver (string[])
in <0x0000b> 00 Mono.CSharp.Driver:Main (string[])