What version of mono are you running?

Have you ran your test for an extensive period of time that would let the
GC to check whether there's an actually leak?

I altered your test to run the test program in an infinite loop and
monitored memory consumption on mono 4.4.1 and noticed no leaks after a few
minutes of it running.

The fact that heapshot report objects being allocated doesn't mean there's
a leak, as those could be temporary objects or runtime allocated objects.

You need to run it for long enough time and then collect memory usage.

--
Rodrigo




On Thu, Aug 11, 2016 at 1:49 AM, techi eth <[email protected]> wrote:

> I am observing memory leak when I called C function from C#.I am running
> my test on Linux machine (Ubunut14.04) with mono 4.2.2.
>
> When I run heap shot profile I am getting unknown object.
>
>
>
> Please find attached test file used for testing. I have attached snapshot
> of heapshot memory snapshot.
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> [email protected]
> http://lists.dot.net/mailman/listinfo/mono-devel-list
>
>
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.dot.net/mailman/listinfo/mono-devel-list

Reply via email to