[Mono-list] gmcs crash compiling XPTable

Dave Moor dave at ducks-n-tworms.co.uk
Mon Oct 20 09:33:29 EDT 2008


Hi

I'm new to mono so please bear with me.  I am a .Net programmer who is
trying to convert some of his projects to Mono on Linux.  My developement
platform is Ubuntu 8.04.1 and Mono 1.9.1 (from the badgerports repository).

When I have produced a Nant build file for XPTable
(http://sourceforge.net/projects/xptable/) when I run my script gmcs
crashes.  I then tried the same in MonoDevelop, firstly it doesn't seem to
want to convert the VS2003 sln to either a MD or VS2005 solution, so I did
that step with VS2005.  Once I could get the solution into MD it crashed
with the same error:

      [csc] Unhandled Exception: Mono.CSharp.InternalErrorException:
/media/disk/XPTable/Events/PaintCellEventArgs.cs(402,29):
XPTable.Events.PaintCellEventArgs.Handled --->
System.NullReferenceException: Object reference not set to an instance of an
object
      [csc]   at Mono.CSharp.MemberCache.FindMemberToOverride (System.Type
invocation_type, System.String name, System.Type[] param_types,
Mono.CSharp.GenericMethod generic_method, Boolean is_property) [0x00000] 
      [csc]   at Mono.CSharp.Property.ResolveBaseProperty () [0x00000] 
      [csc]   at Mono.CSharp.PropertyBase.FindOutBaseMethod (System.Type&
base_ret_type) [0x00000] 
      [csc]   at Mono.CSharp.InterfaceMemberBase.CheckBase () [0x00000] 
      [csc]   at Mono.CSharp.Property.Define () [0x00000] 
      [csc]   at
Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] --- End of inner exception stack trace ---
      [csc]   at
Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] 
      [csc]   at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList mcal) [0x00000] 
      [csc]   at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList list) [0x00000] 
      [csc]   at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] 
      [csc]   at Mono.CSharp.Class.DoDefineMembers () [0x00000] 
      [csc]   at Mono.CSharp.TypeContainer.DefineMembers () [0x00000] 
      [csc]   at Mono.CSharp.RootContext.PopulateTypes () [0x00000] 
      [csc]   at Mono.CSharp.Driver.MainDriver (System.String[] args)
[0x00000] 
      [csc]   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] 

A trimmed down copy of the code is below, it doesn't seem unreasonable to
me.

public class PaintCellEventArgs : PaintEventArgs
{

	// Stuff cut out here

	public bool Handled
	{
		get
		{
			return this.handled;
		}

		set
		{
			this.handled = value;
		}
	}
}

If I comment out the Handled property it complains about one further up the
file.  Is this an outstanding bug or has it been fixed?  I can create a bug
report if I think of a snappy name :)

Dave 
-- 
View this message in context: http://www.nabble.com/gmcs-crash-compiling-XPTable-tp20067499p20067499.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list