[Mono-osx] Compile subsonic using Mono 2.0.1_1, I obtain the following exception.

Paulo Silva silva.pmo at gmail.com
Wed Nov 5 05:48:10 EST 2008


Hello,

When i try to compile subsonic, I obtain the following exception.

I don't have the same issue on windows !!!

The issue is on this code:

public Select SelectAllColumnsFrom <T>() where T : RecordBase<T>, new()
{
     return SubSonic.Select.AllColumnsFrom<T>();
}

And this is the exception message:

Unhandled Exception: Mono.CSharp.InternalErrorException:
/Users/paulosilva/Desktop/WAC/SobSonic/SubSonic/SubSonic/Sql
Tools/SubSonicRepository.cs(40,23):
SubSonic.SubSonicRepository.SelectAllColumnsFrom<T>() --->
System.IndexOutOfRangeException: Array index is out of range.
  at Mono.CSharp.TypeParameter+InflatedConstraints.inflate (System.Type t)
[0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints.inflate (System.Type t)
[0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints..ctor
(Mono.CSharp.GenericConstraints gc, System.Type[] dargs) [0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints..ctor
(Mono.CSharp.GenericConstraints gc, System.Type declaring) [0x00000] 
  at Mono.CSharp.TypeParameter.DefineType (IResolveContext ec,
System.Reflection.Emit.MethodBuilder builder, System.Reflection.MethodInfo
implementing, Boolean is_override) [0x00000] 
  at Mono.CSharp.GenericMethod.DefineType (Mono.CSharp.EmitContext ec,
System.Reflection.Emit.MethodBuilder mb, System.Reflection.MethodInfo
implementing, Boolean is_override) [0x00000] 
  at Mono.CSharp.MethodData.Define (Mono.CSharp.DeclSpace parent,
System.String method_full_name) [0x00000] 
  at Mono.CSharp.MethodOrOperator.Define () [0x00000] 
  at Mono.CSharp.Method.Define () [0x00000] 
  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] 
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList mcal) [0x00000] 
  at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList list) [0x00000] 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] 
  at Mono.CSharp.TypeContainer.DefineMembers () [0x00000] 
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] 
  at Mono.CSharp.Driver.Compile () [0x00000] 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] 


Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 2 errors, 0 warnings


Thanks in advanced,
Paulo Silva



-- 
View this message in context: http://www.nabble.com/Compile-subsonic-using-Mono-2.0.1_1%2C-I-obtain-the-following-exception.-tp20339460p20339460.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list