Oberon Community Platform Forum
October 17, 2017, 07:23:13 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: simple example showing problem under Linux  (Read 1763 times)
adamss937
Newbie
*
Posts: 10


« 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.
Logged
adamss937
Newbie
*
Posts: 10


« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!