[Mono-winforms-list] Mono, XPlatUIX11, error

2008-10-10 Thread Xiu_FR
Hi all ! English version : Excuse my bad English, French and I am using a translator! I have a problem, I try to start one. Exe in vb.net and I can not! I get an error: mono Misubot.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer

[Mono-dev] Please advise. Threading in unmanaged code

2008-10-10 Thread Carsten Harnisch
This is my first post, but I already need some experts advise :) We are evaluating to port an existing app (written in c/c++, for LINUX/Windows/Mac) to mono. The basic pattern is a daemon-based system (using pthreads, epoll) that will dispatch data to various embedded scripting engines (PHP,

Re: [Mono-dev] Compiling mono from the repository

2008-10-10 Thread Luciano _
I have mono from source (svn) on ubuntu, you need to checkout this 3 items: svn co svn://anonsvn.mono-project.com/source/trunk/mono svn co svn://anonsvn.mono-project.com/source/trunk/mcs svn co svn://anonsvn.mono-project.com/source/trunk/libgdiplusSome days ago, i add reference to

Re: [Mono-dev] NullReferenceException when trying to use socket with embedded mono2

2008-10-10 Thread Mrak
Hello, Thanks alot Bill!!! That really solved the problem! Bill Holmes wrote: Hi, We had the same problem. To work around this problem call mono_jit_exec on a Main in an exe. Then proceed with calling your methods as usual. Specifically what we had to do was change the type of the

[Mono-dev] Missing mscorlib

2008-10-10 Thread Rusty Howell
I'm getting this error when building moonlight on opensuse 10.3 x86_64 http://mono.ximian.com/monobuild/builds/HEAD/suse-103-x86_64/moon/115461/logs/build.log Making all in test-runner make[4]: Entering directory `/tmp/monobuild/build/BUILD/moon-115461/test/harness/test-runner' gmcs -debug+

[Mono-dev] Mono 2.0 (arm): Reverse PInvoke can cause memory corruption?

2008-10-10 Thread FirstName LastName
Hi, Recently, I asked about doing reverse pinvoke from a native thread that caused an assert in mini-arm.c. A fix was done and I'm able to do it. But know, I have a feeling that I have memory corruption. My application is crashing at different times and display different stack traces.

Re: [Mono-dev] Mono 2.0 (arm): Reverse PInvoke can cause memory corruption?

2008-10-10 Thread Zoltan Varga
Hi, The GC only stops threads registered with it. This can be done multiple ways: - all threads started by the runtime are automatically registered. - an embedding app can register its threads by calling the mono_thread_attach () API function. - a non-registered thread is automatically

Re: [Mono-dev] Patch: Fix fast generic virtual method calls with remoting

2008-10-10 Thread Paolo Molaro
On 10/09/08 Mark Probst wrote: Anyway, updated patch attached. The changes look fine to me. Maybe it's a good idea to have a remoting test that triggers this also in the runtime tests. lupus -- - [EMAIL PROTECTED]

Re: [Mono-dev] Mono 2.0 (arm): Reverse PInvoke can cause memory corruption?

2008-10-10 Thread Paolo Molaro
On 10/10/08 FirstName LastName wrote: I have a general question regarding GC. When the GC runs, does it stop all threads in the process, even those created in unmanaged. Only the ones it knows about, but see below. I asking the following because I'm wondering what would happen if the GC

Re: [Mono-dev] Please advise. Threading in unmanaged code

2008-10-10 Thread Paolo Molaro
On 10/10/08 Carsten Harnisch wrote: As I understood mono is using phreads and epoll, so having created a mono-thread and using this thread to call an unmanged piece of code, will this unmanaged code be run in the context of the underlaying pthread? Or does the mono i/o layer call the unmanaged

[Mono-dev] How to create a JIT trampoline?

2008-10-10 Thread Kornél Pál
Hi, Currently mono_image_fixup_vtable actually compiles methods that causes type loads as well and requires the assembly to be loaded. Please help with letting me know how could I avoiding this by using JIT trampolines. I have no idea how to create them and late fixup their address. Thanks.

[Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Bojan Rajkovic
Hi all, How does Mono deal with SSE-capable processors (or Altivec capable processors)? That is, does the JIT emit any SSE calls when there's a chance to use them, or are they totally unused in Mono? Thanks, Bojan Rajkovic smime.p7s Description: S/MIME cryptographic signature

Re: [Mono-dev] How to create a JIT trampoline?

2008-10-10 Thread Paolo Molaro
On 10/10/08 Kornél Pál wrote: Currently mono_image_fixup_vtable actually compiles methods that causes type loads as well and requires the assembly to be loaded. Please help with letting me know how could I avoiding this by using JIT trampolines. I have no idea how to create them and late

Re: [Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Paolo Molaro
On 10/10/08 Bojan Rajkovic wrote: How does Mono deal with SSE-capable processors (or Altivec capable processors)? That is, does the JIT emit any SSE calls when there's a chance to use them, or are they totally unused in Mono? We use some of the SSE instructios if available on x86. On amd64

Re: [Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Dax
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Molaro wrote: We don't auto vectorize from IL code, but we're developing an extension that allows people to take advantage of sse instructions with intrinsics (people watching the changes list can see it already). That said, what versions of

Re: [Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Paolo Molaro
On 10/11/08 Dax wrote: Paolo Molaro wrote: We don't auto vectorize from IL code, but we're developing an extension that allows people to take advantage of sse instructions with intrinsics (people watching the changes list can see it already). That said, what versions of SSE will be

[Mono-dev] svn trunk broken?

2008-10-10 Thread Jacob Gladish
I just sync'd up to the trunk and my build is failing. Any ideas? make[4]: Leaving directory `/home/jake/mono/mono' LD pedump ./.libs/libmonoruntime.a(gc.o): In function `finalizer_thread': /home/jake/mono/mono/mono/metadata/gc.c:914: undefined reference to `mono_attach_maybe_start'

Re: [Mono-dev] svn trunk broken?

2008-10-10 Thread Dax
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob Gladish wrote: I just sync'd up to the trunk and my build is failing. Any ideas? You might want to run a full clean (svn clean, make clean, reconfigure) and retry - that fixed that for me a few days ago. If not, deleting your local copy

Re: [Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Rodrigo Kumpera
On Fri, Oct 10, 2008 at 9:01 PM, Dax [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Molaro wrote: We don't auto vectorize from IL code, but we're developing an extension that allows people to take advantage of sse instructions with intrinsics (people

[Mono-list] Using Mono Debugger with apps expecting input on the command line

2008-10-10 Thread Mike Mazur
Hi, Tried out Mono Debugger today. The app I'm working with provides a console of its own when run, accepting commands from the user. What I type is sent to the app, not to the debugger. I don't actually need to send anything to the app, and I'd obviously like to type commands into the debugger.

Re: [Mono-list] Is this a common error that someone has a hint about?

2008-10-10 Thread Maser, Dan
No, I'm completely unable to create a test case...nothing else I seem to do reproduces the problem tho in my full app it happens every time. For more info - this error happens not when the offending line is excuted but instead the exception is thrown before the entire function is even run.

Re: [Mono-list] Is this a common error that someone has a hint about?

2008-10-10 Thread Paolo Molaro
On 10/08/08 Maser, Dan wrote: I'm using RHEL4 and I rebuilt my mono from the svn head today. When I run my app (which was working a month ago) I get this fatal exception I've not seen before. Does it look familiar to anyone? If there are some ideas I'd try them before trying to make a

[Mono-list] Fwd: Mono on the iPhone

2008-10-10 Thread Justin Dearing
Didnt realize I was replying to only the sender. -- Forwarded message -- From: Lennie De Villiers [EMAIL PROTECTED] Date: Fri, Oct 10, 2008 at 2:51 AM Subject: Re: [Mono-list] Mono on the iPhone To: Justin Dearing [EMAIL PROTECTED] Hi Justin: Its been done before:

Re: [Mono-list] Is this a common error that someone has a hint about?

2008-10-10 Thread Paolo Molaro
On 10/10/08 Maser, Dan wrote: If I send you the whole IL of that function would that do anything? I'd gladly give you the whole app but it's HUGE and requires dozens of supporting libs special environment stuff to run. Yes, the IL of the function may be enough (tell us also what kind of

[Mono-list] Compile Mono from Source

2008-10-10 Thread gep13
Hey, Version 1.9.1 of mono was included in pre-compiled binaries that I could use on my RHEL box, but those binaries are no longer available, and I have to try and compile from source. Is it possible for someone to post a list of steps that I should follow in order to do this? I am aware of

Re: [Mono-list] Is this a common error that someone has a hint about?

2008-10-10 Thread Maser, Dan
Here's the IL. It's a member function of a class that is not generic. Just to reiterate if I comment out (or even slightly alter) the source code line that generated the IL near L_0123 the problem goes away. .method public hidebysig instance string GetElapsedTimeString() cil managed {