[MonoDevelop] Array allocation

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Jul 10 22:41:03 EDT 2009


On Fri, Jul 10, 2009 at 2:28 PM, Rick Lamanna<Rick.Lamanna at mccdaq.com> wrote:
>
> My C# program is crashing on Linux. I get the following stack trace:
>
>   at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_2
> (intptr,intptr,intptr) <0x00004>
>   at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_2
> (intptr,intptr,intptr) <0xffffffff>
>   at MC7000API.DaqDevice.ReadScanData (int) [0x00032] in
> /root/Linux/MC7000Software/Library/MC7000API/api/api.cs:91
...
> My program allocates and copies many arrays. The code at line 91 in api.cs
> is allocating an array inside a method...
>
> double[,] scanData = new double[channelCount, samplesRequested] //
> channelCount = 8, samples requested = 316
>
> This array is passed back to my application. I get the crash when this
> method gets called 100 to 130 times.
>
> I don’t get an Exception that I can catch. How can I debug this?

This looks like a problem with the runtime, so you'd be more likely to
get an answer on one of the other Mono mailing lists.

All I can suggest is to construct a minimal test case that can be used
to reproduce the problem on the latest Mono release, and file a bug
report against the runtime.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list