[Mono-dev] WeakReference problem

2014-01-29 Thread Tobias Käs
Hi, the generic WeakReferenceT for .NET 4.5 sometimes returns true from TryGetTarget even though the target has been collected (the out-value is correctly set to null). All my WeakReferences have been initialized with non-null values. Looking at the source at github I can imagine that there

Re: [Mono-dev] WeakReference problem

2014-01-29 Thread Rodrigo Kumpera
Please provide a test case that shows this behavior On Wed, Jan 29, 2014 at 5:00 PM, Tobias Käs tobias.k...@gmx.de wrote: Hi, the generic WeakReferenceT for .NET 4.5 sometimes returns true from TryGetTarget even though the target has been collected (the out-value is correctly set to null).

[Mono-dev] Array.Copy endian issue?

2014-01-29 Thread Bassam Tabbara
Hello, I’m chasing a bug while parsing the machine.config XML file, and I’ve narrowed it down to Array.Copy performing the wrong copy. Here’s an example: before copy 'descript' after copy ' edcsirt' The buffer is altered after its copied. This seems to happen only on newer versions of linux

Re: [Mono-dev] Array.Copy endian issue?

2014-01-29 Thread Bassam Tabbara
A little more details. If I remove the FastCopy call in Array.Copy I am unable to reproduce this. // if (FastCopy (sourceArray, sourceIndex, destinationArray, destinationIndex, length)) // return; Attached is a test case but it needs to be