[Mono-dev] PrelinkAll leads to assertion failure

2012-01-03 Thread Martin Däumler
Hello, I wanted to use Marshal.PrelinkAll() in order to pre-initialize a PInvoke. Unfortunately, executing this method leads to an assertion failure on x86/Linux. The C# code is quite simple: using System; using System.Runtime.InteropServices; class Test1 { [DllImport(libpinvoke)]

Re: [Mono-dev] PrelinkAll leads to assertion failure

2012-01-03 Thread Zoltan Varga
Hi, This is now fixed in HEAD/2.10 branch. Zoltan On Tue, Jan 3, 2012 at 1:34 PM, Martin Däumler m...@cs.tu-chemnitz.dewrote: Hello, I wanted to use Marshal.PrelinkAll() in order to pre-initialize a PInvoke. Unfortunately, executing this method leads to an assertion

[Mono-dev] Stopwatch's frequency

2012-01-03 Thread Konrad M. Kruczyński
Hi, lastly I've explored Stopwatch class implementation in Mono. It seems that it has hardcoded 100ns resolution. However examining mono_100ns_ticks function reveals that is written well and uses platform specific high resolution timer. My question is: why the initializer of the Frequency field

[Mono-dev] TimeZoneInfo.Local on Windows

2012-01-03 Thread Jonathan Shore
So I have a mono application which works fine on OSX and Linux that uses System.TimeZoneInfo.Local, amongst other TimeZoneInfo facilities. On windows calling TimeZoneInfo.Local throws a TimeZoneNotFoundException. Looking at the class library code in mcs/class/System.Core/System/TimeZoneInfo.cs

Re: [Mono-dev] TimeZoneInfo.Local on Windows

2012-01-03 Thread Jonathan Shore
I should also mention that this in an embedded application (so I cannot use the MS VM). I have tried running this as a pure C# test app just to make sure is not a problem with my embedding. Hence, need to either fix or avoid using this part of the API. On Jan 3, 2012, at 6:02 PM, Jonathan