[Mono-dev] Array and IEnumerable
Elise Langham
i-ellang at microsoft.com
Tue Jun 30 12:45:20 EDT 2009
I'm running Mono 2.4 on Windows and am getting a similar error - is there
any solution to this bug ?
System.Array.InternalEnumerator<System.String[]> doesn't imple
ment interface System.Collections.Generic.IEnumerator<System.Array>
**
ERROR:mini-trampolines.c:67:mono_convert_imt_slot_to_vtable_slot: code
should no
t be reached
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
cheers,
Elise
Yopmaster wrote:
>
> Hello everyone, I'm brand new on this forum.
>
> I'm porting a C# application to mono 1.9 (I'm testing on MacOSX10.5) and I
> got some issues. This one occurs during an XML serialization.
> I've managed to solve some XML serialization issues by myself before, but
> I'm not getting this error, which I suspsect is a bug of the VM:
>
> -------- Begining of the error --------
>
> Fleets.Redefis.Hardware.RDP.XML.RDPL.LUTRDPModule[] doesn't implement
> interface
> System.Collections.Generic.IEnumerable<Fleets.Redefis.Hardware.RDP.XML.IXMLModule>
>
> ** ERROR **: file mini-trampolines.c: line 42
> (mono_convert_imt_slot_to_vtable_slot): should not be reached
> aborting...
> Stacktrace:
> [...]
> ../../working_dir/launchSimu.sh: line 19: 66088 Abort trap
>
> -------- Enf of the error --------
>
> To sum-up, I've a class LUTRDPModule thath implement interface IXMLModule
>
> class LUTRFPModule : IXMLModule {
> [...]
> }
>
> And an array of LUTRDPModule
>
> LUTModule modules
>
> Which I cast into a Collection
>
> (ICollection<IXMLModule>)modules
>
> It looks like array in Mono are not enumerable, tough they are in .NET.
> And the ** ERROR ** looks like a bug in the VM.
>
> Am I wrong ?
>
> Thank you very much
>
> Antoine.
>
--
View this message in context: http://www.nabble.com/Array-and-IEnumerable-tp18146456p24275411.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list