[Mono-devel-list] [GENERICS] MonoGenericClass.GetParentType()
Michal Moskal
michal.moskal at gmail.com
Tue Jun 14 14:46:10 EDT 2005
Hello,
I've run into strange SEGV in MonoGenericClass.initialize(). After a few
hours of debugging I have found that GetParentType() sometimes returns
MonoType and not MonoGenericType as it is supposed to.
The MonoType is taken from domain->type_hash in mono_type_get_object,
maybe this is the source of the problem?
MonoGenericClass is constructed from a TypeBuilder, while its parent is
loaded from external library.
Or maybe this is just normal, and my solution (to make GetParentType
return System.Type and use "as MonoGenericClass") is right?
--
Michal Moskal,
http://nemerle.org/~malekith/
More information about the Mono-devel-list
mailing list