[Mono-dev] NRE when using pointers on armhf
slide.o.mix at gmail.com
Thu Mar 26 20:53:30 UTC 2015
That's a good point! Can you tell me where in the mono code that the
unaligned accesses are handled? I'd just like to confirm.
On Thu, Mar 26, 2015 at 1:13 PM Zoltan Varga <vargaz at gmail.com> wrote:
> arm might require aligned reads, i.e. 'p' should be 4 byte aligned in
> this case.
> On Thu, Mar 26, 2015 at 3:28 PM, Slide <slide.o.mix at gmail.com> wrote:
>> I am trying to compile and use the ZeroC Ice remoting library for armhf
>> to run on my RaPi 2. The compilation goes fine, but when running the test
>> suite I am getting a NullReferenceException on the pointer assignment in
>> the following code:
>> fixed(byte* p = &_bytes[_position])
>> *((float*)p) = _valBytes.floatVal; // exception here
>> This same code works on x86_64, so I am assuming there is something that
>> is missing in the armhf implementation.
>> Is there something I can do to debug what might be missing and provide a
>> patch? I've never done work on the mono runtime itself.
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list