[Mono-list] Problems with Visual Studio 2005 compiled code
Alan McGovern
alan.mcgovern at gmail.com
Thu Aug 30 13:00:09 EDT 2007
Have you tried running a memory profiler on your application and seeing
exactly what's going on?
Alan.
On 8/30/07, Eric Morgan <eric at rengeo.com> wrote:
>
> Lupus,
>
> I can send you the executable and libraries, but I cannot send the source
> code. Would you prefer if I emailed it or uploaded a tar.gz to our site?
> The size is around 8mb I believe.
>
> Jonathan:
>
> Can you please explain what PE+ means? At first, I targetted x64
> platform. Then, I tried "Any CPU". The reason is, because even with a
> 64bit version of mono, on a 64bit machine, we are still getting out of
> memory exceptions when our program gets too large, even when there's plenty
> of memory available (like.. 8gb workstations). We assumed it was because
> the compiled source code is still compiled for a 32bit platform and hits
> that address space limit, which is why we're trying to compile like this in
> the first place.
>
> To make the csharp code native, would I need to compile with mcs/gmcs on
> linux?
>
>
> Thank you for your help!
>
> Eric Morgan
>
>
>
> On 8/30/07, Jonathan Chambers <joncham at gmail.com> wrote:
> >
> > Eric,
> > This definitely looks like an issue with running a PE+ executable
> > (produced if you target the x64 platform). If I try to run a PE+ executable
> > under mono I get:
> >
> > Cannot open assembly test.exe.
> >
> > Mono currently does not support PE+, although it may in the near term as
> > the consensus is that is shouldn't be too hard to do. I'm guessing both
> > times you somehow produced a PE+ executable. Try specifically targeting x86
> > as the platform and see if you application runs.
> >
> > Thanks,
> > Jonathan
> >
> > On 8/30/07, Paolo Molaro < lupus at ximian.com> wrote:
> > >
> > > On 08/29/07 Eric Morgan wrote:
> > > > Code compiled from VS2005 does not run under mono. It says that it
> > > cannot
> > > > open the assembly (Main executable). The same mono version will run
> > > other
> > > > apps compiled with our old VS2003. Is there some configuration
> > > option I'm
> > > > missing? What else can I do to troubleshoot it to at least see
> > > what's wrong?
> > > >
> > > > Mono-INFO: Assembly Loader probing location:
> > > >
> > > '/home/rengeo/RenegadeGeophysics/SeismicStudioLinux/SeismicStudio1.3.3/SeismicStudio.exe'.
> > >
> > > >
> > > > Mono-INFO: Unloading image
> > > >
> > > /home/rengeo/RenegadeGeophysics/SeismicStudioLinux/SeismicStudio1.3.3/SeismicStudio.exe
> > > > [0x7826c0].
> > > > Cannot open assembly
> > > >
> > > /home/rengeo/RenegadeGeophysics/SeismicStudioLinux/SeismicStudio1.3.3/SeismicStudio.exe.
> > >
> > >
> > > I guess you can't share that app with us? It looks like an issue with
> > > the loader: it may be over-zealous in some sanity checks it is doing.
> > > If you can't send the program to me (there is no need to send it to
> > > the
> > > list), you could try to send me just the first 4 or 8 KBs of it: it
> > > may
> > > be possible that would be enough to see what is going on.
> > > Or if you can get a binary of some other program compiled with VS2005
> > > that fails to load in the same way, that would work too.
> > >
> > > Thanks!
> > >
> > > lupus
> > >
> > > --
> > > -----------------------------------------------------------------
> > > lupus at debian.org debian/rules
> > > lupus at ximian.com Monkeys do it better
> > > _______________________________________________
> > > Mono-list maillist - Mono-list at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> > >
> >
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
> >
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070830/9a5289e9/attachment.html
More information about the Mono-list
mailing list