[Mono-list] Mono doesn't seem to like JSharp code in MSIL form. -> BANG

Christian.Buchner Christian.Buchner1@epost.de
Fri, 14 Feb 2003 22:50:00 -0800


Hi.

I just experimented running an assembly created with Microsoft Visual J#
with the Mono JIT. Microsoft Visual J# produces MSIL from Java source,
targeting the runtime (and it's a FREE addon to Visual Studio!). My hope
was that I could replace a broken C# class with with a version Java that
has less bugs. ;)

The bad news:

Mono virtually "exploded". I do know that some stuff regarding metadata
in assemblies is not yet implemented. But the following looks like a serious
parsing problem that ends up reporting weird binary stuff with the potential
to even crash (or create buffer overflows).

D:\dev\JSBZip2>mono bin\debug\JSBZip2.exe ..\LogTest\windowsmedia_20030131.bz2
** Message: Unknown heap type:
** Message: Unknown heap type: trings
** Message: Unknown heap type:
** Message: Unknown heap type:
** Message: Unknown heap type:
** Message: Unknown heap type: lob
...
** Message: [Invalid UTF-8] Unknown heap type: ??¶?????(?1?<?T?Y?^?c?h??Ç

There's plenty of binary characters being reported in the Unknown
Heap Type messages as well.

I can provide a full ILDASM /ALL dump of that assembly on request.

Christian