Oberon Community Platform Forum

Development => ETH Zonnon => Topic started by: adamss937 on February 18, 2013, 02:38:19 AM



Title: simple example showing problem under Linux
Post by: adamss937 on February 18, 2013, 02:38:19 AM
This small program:

module t;
(*
zc.exe /ref:/usr/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll /entry:t t.znn

 then
   chmod +x IFF2.exe
*)

  import
    System.Windows.Forms as Forms;

  var
    form             : Forms.Form;

begin
  form        := new Forms.Form();
end t.

When run under Linux gives:

Unhandled Exception: System.TypeLoadException: Could not load type 'Zonnon.t' from assembly 't, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'Zonnon.t' from assembly 't, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

It doesn't seem to matter what distro of Linux, or how complicated the example.  The simple HelloWorld example with no imports does run; but when the single import is added it crashes.


Title: Re: simple example showing problem under Linux
Post by: adamss937 on March 03, 2013, 12:59:14 AM
I found out a little more -- turns out if the program is compiled under Windows and then the resultant EXE is run under Mono on Linux, it works fine.  The problem only arises when using the Zonnon compiler on Mono.