[Mono-dev] .Net 2.0 code failing on mono

Ben Maurer bmaurer at ximian.com
Thu Nov 10 18:50:06 EST 2005


Hey,

On Thu, 2005-11-10 at 16:19 -0700, Ron Vered wrote:
> My company is not officially supporting mono and some client WinForms
> code was built for .net 2.0.
>  
> With my limited bandwidth, I would like to help the cause of mono to
> make this code run also on mono.
>  
> When naively running the client app with mono (1.1.9.2) I get a
> dialougue with 
> ** ERROR **: file class.c line 2233 (mono_class_setup_parent): should
> not be reached aborting...
> With no additional information about the problem.
>  
> Guessing it maybe related to missing assemblies / implementation, I
> have tried:
> mono --trace=M:Assembly:GetTypes
> which produces no information.

The lines in question look like:
	if (!MONO_CLASS_IS_INTERFACE (class)) {
		class->parent = parent;

		if (!parent)
			g_assert_not_reached (); /* FIXME */

This code looks like it is trying to initialize the parents of the class
being setup. Maybe you are inheriting from a new 2.0 class that we have
not created?

I'd first try compiling your program with gmcs. If there are classes
that we don't have, it should be more easily apparent there.

-- Ben




More information about the Mono-devel-list mailing list