csharp: Fix free_cb calling under dotnet.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 15 Apr 2019 17:09:49 +0000 (14:09 -0300)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Apr 2019 01:59:49 +0000 (10:59 +0900)
commitb87e3c1c4b173a6680ab674c5d8cb3389e71727f
treec24ec4114b54f65e3274d4ac6970ac64ac9dfd72
parent2f269a623ae7e311085c4d7e88f4328923f97d16
csharp: Fix free_cb calling under dotnet.

Summary:
dotnet's GC seems to be more agressive, showing some issues that usually
do not appear when running under Mono's.

This commit uses for free_cb's the same scheme we already use for
regular Eo refs, using a GC handle to keep the cleaning callback alive.

Reviewers: vitor.sousa, felipealmeida, woohyun

Reviewed By: vitor.sousa

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8593
16 files changed:
src/bin/eolian_mono/eolian/mono/function_pointer.hh
src/bin/eolian_mono/eolian/mono/klass.hh
src/bindings/mono/efl_mono/efl_all.cs
src/bindings/mono/eina_mono/eina_accessor.cs
src/bindings/mono/eina_mono/eina_array.cs
src/bindings/mono/eina_mono/eina_binbuf.cs
src/bindings/mono/eina_mono/eina_hash.cs
src/bindings/mono/eina_mono/eina_inarray.cs
src/bindings/mono/eina_mono/eina_iterator.cs
src/bindings/mono/eina_mono/eina_strbuf.cs
src/bindings/mono/eina_mono/eina_value.cs
src/bindings/mono/eldbus_mono/eldbus_connection.cs
src/bindings/mono/eldbus_mono/eldbus_message.cs
src/bindings/mono/eldbus_mono/eldbus_object.cs
src/bindings/mono/eldbus_mono/eldbus_proxy.cs
src/bindings/mono/eo_mono/iwrapper.cs