[C#][iOS] Fix callbacks on AOT #388

Closed
splhack wants to merge 5 commits from aot into master
splhack commented 2017-02-10 13:52:16 -08:00 (Migrated from github.com)

Based on the idea of #386 by @rmarinho

Based on the idea of #386 by @rmarinho
rmarinho commented 2017-02-10 14:05:57 -08:00 (Migrated from github.com)

Don't we need to free the handle? i think we might need IDisposable , free the handle on Dispose, and call Dispose(false) on the Destructor , we can clear parent weak reference too. i think it will help fix the test failing on iOS for parent destructor.

Don't we need to free the handle? i think we might need IDisposable , free the handle on Dispose, and call Dispose(false) on the Destructor , we can clear parent weak reference too. i think it will help fix the test failing on iOS for parent destructor.
splhack commented 2017-02-10 14:19:30 -08:00 (Migrated from github.com)

In my understanding GCHandle.Alloc with GCHandleType.Weak means we don't need to free the handle, right?

iOS for parent destructor

maybe iOS mono implementation has different GC timing for that certain situation?

In my understanding GCHandle.Alloc with GCHandleType.Weak means we don't need to free the handle, right? > iOS for parent destructor maybe iOS mono implementation has different GC timing for that certain situation?
rmarinho commented 2017-02-10 14:26:34 -08:00 (Migrated from github.com)

@splhack i m not a expert but from internal feedback i got that "Yea, you still need to dispose of the GCHandle manually. "

@splhack i m not a expert but from internal feedback i got that _"Yea, you still need to dispose of the GCHandle manually. "_
rmarinho commented 2017-02-10 14:31:10 -08:00 (Migrated from github.com)

About the test , maybe something around this :

9a68a14699

About the test , maybe something around this : https://github.com/rmarinho/yoga/commit/9a68a14699a038043d4176e5d5ce8b7c965e2b3a
splhack commented 2017-02-10 14:33:32 -08:00 (Migrated from github.com)

Or just skip GC test on iOS?

Or just skip GC test on iOS?
rmarinho commented 2017-02-10 14:39:36 -08:00 (Migrated from github.com)

sure that's an option ..

sure that's an option ..
splhack commented 2017-02-10 14:55:48 -08:00 (Migrated from github.com)

How about this attempt to call GCHandle.Free?

How about this attempt to call GCHandle.Free?
rmarinho commented 2017-02-10 14:57:31 -08:00 (Migrated from github.com)

👍

👍
rmarinho commented 2017-02-15 16:38:49 -08:00 (Migrated from github.com)

Can we merge this? why is the build failing ?

Can we merge this? why is the build failing ?
splhack commented 2017-02-15 16:56:45 -08:00 (Migrated from github.com)

Yeah, we're trying to do that with #386.

Yeah, we're trying to do that with #386.
facebook-github-bot commented 2017-02-15 19:10:38 -08:00 (Migrated from github.com)

@splhack has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@splhack has imported this pull request. If you are a Facebook employee, you can view this diff [on Phabricator](https://phabricator.intern.facebook.com/D4570778).

Pull request closed

Sign in to join this conversation.
No description provided.