[mercury-users] Mercury IL and Managed C++

Jonathan Morgan jon.morgan at optusnet.com.au
Sat Nov 19 13:53:23 AEDT 2005


Peter Ross wrote:
> On Fri, Nov 18, 2005 at 01:05:38AM +1100, Jonathan Morgan wrote:
> > Jonathan Morgan wrote:
> >
> > > It works for the compilation of the samples I've tested it on, but I
> > haven't
> > > yet managed to make the standard library build against the .NET
> > > Framework/.NET SDK 1.1, meaning that they fail when trying to load
> > > mercury.dll.
> >
> > Modify that.  All it required was a minor fix to build the libraries.
> > However, now all applications (including hello world) have uncaught
> > exceptions thrown, which kills the application before it really starts.
> >
> Which exception?

See the following output - it looks like a mess, everyone trying to pass on
the exception.

Unhandled Exception: System.TypeInitializationException: The type
initializer for "hello.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.array.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.assoc_list.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.benchmarking.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.bool.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.builtin.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.char.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.construct.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.deconstruct.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.dir.mercury_code" threw an exception. --->
System.TypeInitializationException: The type initializer for
"mercury.enum.mercury_code" threw an exception. ---> System.MissingFieldExce
ption: Field not found:
mercury.private_builtin__csharp_code.mercury_code.MR_FUNCTION.

   at mercury.enum.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.enum.mercury_code..cctor()

   at mercury.dir.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.dir.mercury_code..cctor()

   at mercury.deconstruct.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.deconstruct.mercury_code..cctor()

   at mercury.construct.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.construct.mercury_code..cctor()

   at mercury.char.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.char.mercury_code..cctor()

   at mercury.builtin.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.builtin.mercury_code..cctor()

   at mercury.bool.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.bool.mercury_code..cctor()

   at mercury.benchmarking.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.benchmarking.mercury_code..cctor()

   at mercury.assoc_list.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.assoc_list.mercury_code..cctor()

   at mercury.array.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at mercury.array.mercury_code..cctor()

   at hello.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at hello.mercury_code.main_2()
(null)

Jon

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list