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

Paolo Molaro lupus@ximian.com
Mon, 17 Feb 2003 12:11:15 +0100

On 02/16/03 Christian.Buchner wrote:
> Now it appears to load my own J# compiled assembly just fine.
> The example is a simple J# application, performing only a simple
>   System.out.println("Hello World!\n");
> However Microsoft's assemblies (vjs*.dll) won't load still. *sigh*
> 02/16/2003  02:28a      <DIR>          .
> 02/16/2003  02:28a      <DIR>          ..
> 02/16/2003  02:28a              20,480 JSHello.exe
> 02/16/2003  02:28a              11,776 JSHello.pdb
> 02/16/2003  02:01a               7,680 vjscor.dll
> 02/16/2003  02:01a           3,796,992 vjslib.dll
> 02/16/2003  02:01a              32,768 vjslibcw.dll
> D:\dev\JSHello\bin\Debug>mono JSHello.exe
> ** Message: Unknown heap type: #-
> Unhandled Exception: System.NullReferenceException: A null value was found where
>  an object instance was required
> I find it interesting that there is no indication where this exception
> occured. Also I think the Unknown Heap Type message should print which
> assembly it tried to load and at what position in the file this error 
> occured.

I'll add a message that will get printed when the #- heap is found:
you need to compile the assemblies without the /incremental switch
(use the Release mode instead of the Debug one). The #- heap is an
internal MS format that is not standardized. Some info was posted to
this list a while ago: it should not be hard to support it in mono, but
I don't have the time to implement it right now. Any volunteers?


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better