[Mono-list] Array of pointers failure in SVN HEAD.
Steven Kirk
steven.kirk at status-scientific.com
Tue Aug 16 09:40:28 EDT 2005
Hello,
Arrays of pointers are not working in SVN head.
The following testcase compiles and executes correctly on Visual Studio
.NET 255 (Beta2):
using System;
namespace ConsoleApplication1 {
class Program {
static unsafe void Main(string[] args) {
int[] i = new int[] { 10 };
fixed (int* p = i) {
int*[] q = new int*[] { p };
*q[0] = 5;
Console.WriteLine(*q[0]);
}
}
}
}
However, it produces a NullReferenceException on Mono from SVN (at
wrapper stelemref).
I'm afraid I'm not sufficently au-fait with the mono codebase to fix
this myself (I have tried to find the problem). Please let me know what
the fix is should you fix the problem.
Cheers
Steven
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/08/2005
More information about the Mono-list
mailing list