Since you're using .NET, I'm assuming you're using C#. I know that arrays and pointers are treated differently, which is likely the cause of your problem. Unfortunately, I can't get any more specific than that since I have never used C#. In fact, I doubt you'll get a lot of help here regardless: notice the subtitle at the top: "The Macintosh Game Developer's Community." Some people here may have worked with C# before, whether it be at work or by developing Windows stuff along with their Mac stuff, but this community is mainly Mac based.