[Mono-dev] [Embedded] GetEnumerator on a Listint

2011-04-04 Thread viktor.hermansson
I have a problem to use an Enumerator in the unmaneged world. When I execute MoveNext() it doesn't return the expected value (true). example code: (an extension to Roberts code here: http://go-mono.com/forums/#nabble-td1538089) c++-code: http://pastebin.com/aMHmnHRC c#-code:

Re: [Mono-dev] [Embedded] GetEnumerator on a Listint

2011-04-04 Thread Zoltan Varga
Hi, Enumerator is probably a valuetype, and those have to be unbox-ed before passing them to mono_runtime_invoke (). Zoltan On Mon, Apr 4, 2011 at 2:10 PM, viktor.hermansson viktor.hermans...@gmail.com wrote: I have a problem to use an Enumerator in the unmaneged

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread kralu
W dniu 2011-03-30 22:07:45 użytkownik Miguel de Icaza mig...@novell.com napisał: While another one is doing an equality test, the state is half-built. The way you could instrument this is to rewrite that routine to not be recursive, but instead to be iterative, and have a maximum count,

[Mono-dev] Debugging Native Client (was Re: more support for Google Native Client)

2011-04-04 Thread Elijah Taylor
Hi, I've not seen anything like that myself, but I'll admit we haven't run NaCl Mono through many production level environments yet, so there may be something there that's been previously undetected. However, we've run embedded in Unity3D (their entire scripting engine uses Mono) and only had to

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread Alan
Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing if its there. Alan On 4 Apr 2011 14:55, kr...@poczta.onet.pl wrote: W dniu 2011-03-30 22:07:45 użytkownik Miguel de Icaza

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread Gonzalo Paniagua Javier
On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing if its there. They are synchronized as long as you don't replace the default

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread kralu
On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread nekresh
On Mon, Apr 4, 2011 at 10:37 PM, kr...@poczta.onet.pl wrote: On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread kralu
On Mon, 2011-04-04 22:41:47 nekresh nekr...@gmail.com wrote: On Mon, Apr 4, 2011 at 10:37 PM, kr...@poczta.onet.pl wrote: On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods

Re: [Mono-dev] StackOverflow on System.Delegate.Equals

2011-04-04 Thread Alan
Hey, Well the other thing is that the delegate class is supposed to be immutable. Therefore it should be impossible to produce a corrupt delegate through multithreaded access as any modification to a delegate instance results in a new copy of the delegate (with modification) being created, just

[Mono-dev] Bug in Dispatcher.cs VerifyAccess or am I confused on the mono threading model?

2011-04-04 Thread Brad Cunningham
I just upgraded to 2.10 and am getting strange behavior that I wasn't seeing in 2.8.1 I call VerifyAccess in my code which is the method in the Dispatcher class that will compare the calling thread with the thread that the dispatcher was created on, if they differ it will throw an exception. In