Open endel opened 8 years ago
The stack trace isn't providing much information, but it looks like one of the assemblies you're translating contains a UInt64
enum with a very large enumerant, maybe? I haven't ever tested with monomac.
@endel, please try to change JSIL/TypeInformation.cs around line 698. Please replace:
if (field.HasConstant)
enumValue = Convert.ToInt64(field.Constant);
with
if (field.HasConstant) {
if (field.Constant is ulong) {
enumValue = (long) (ulong) field.Constant;
} else {
enumValue = Convert.ToInt64(field.Constant);
}
}
Could you report if it'll help?
Thanks for your quick reply @iskiselev and @kg.
@iskiselev it did compiled with this change! I just couldn't make it actually run in the browser. Maybe I'm missing something. I'll have a deep look during the weekend. Cheers!
Hi there,
I'm trying to compile a simple "hello world" without success.
I'm under OSX (10.11.4), using Xamarin Studio to compile. Am I missing something? Should it work on my environment?
Hello world source code
Stack trace + error message: