[Mono-list] Mono & x64 issue

Francois Schelling fschelling at square-enix-montreal.com
Mon Oct 22 17:13:10 UTC 2012


Ok,

 

I've just tried to build my own version of mono using the what you mentioned : build the mono/msvc/mono.sln with Visual Studio 2010.  I decided to start with the 32 bits version since I'm having a working version of my app working with the "official" mono package.  I've been able to compile the mono-2.0.dll and mono-2.0.lib.  But when launching my app, I've got the following error when calling  mono_jit_init_version():

 

* Assertion at d:\projects\monoeval\mono-2.11.4-source\mono\metadata\threads.c:767, condition `((char*)&internal->unused2 - (char*)internal)== mono_defaults.internal_thread_class->fields [mono_defaults.internal_thread_class->field.count - 1].offset' not met

 

The problem is with my own mono-2.0.dll since swapping it with the one from mono package work just fine.

 

Any idea?

 

 

Francois Schelling

Senior Programmer

Square Enix Montréal

fschelling at square-enix-montreal.com <mailto:fschelling at square-enix-montreal.com> 

 

 

 

 

 

 

From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jonathan Chambers
Sent: 20 October 2012 15:21
To: Robert Jordan
Cc: Mono-list at lists.ximian.com
Subject: Re: [Mono-list] Mono & x64 issue

 

The easiest thing to do is to build the Visual Studio solution mono.sln in mono/msvc. Build the x64 target in this case. It will produce the dynamic library (mono-2.0.dll) and an import lib (mono-2.0.lib). A few others and myself had the Win64 version of the runtime working pretty well. You may run into some issues, but it should simple applications reliably.

 

Thanks,

Jonathan

On Tue, Oct 16, 2012 at 10:54 AM, Robert Jordan <robertj at gmx.net> wrote:

On 16.10.2012 16:14, Francois Schelling wrote:

I've created a 64 bits version of my mono.lib in order to make my
program links correctly with mono using the following command: lib
/nologo /def:mono.def /out:mono64.lib /machine:x64.

 

The "official" Mono for Windows is 32-bit only, so creating
a 64-bit import lib won't help at all.

Robert

_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

 


______________________________________________________________________
This email has been scanned by the MessageLabs
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121022/8b73d963/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 824 bytes
Desc: image001.gif
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121022/8b73d963/attachment-0001.gif>


More information about the Mono-list mailing list