You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like we may end up in a situation where we have 2 instances - X and Y; X gets GC-ed and Y - disposed. When RemoveRealm is called for Y, it'll see there're still instances in State._weakRealms and avoid closing the native Realm.
The text was updated successfully, but these errors were encountered:
Looking at the code for State.RemoveRealm:
realm-dotnet/Realm/Realm/Realm.cs
Lines 1400 to 1415 in 247a6fc
It looks like we may end up in a situation where we have 2 instances - X and Y; X gets GC-ed and Y - disposed. When
RemoveRealm
is called for Y, it'll see there're still instances inState._weakRealms
and avoid closing the native Realm.The text was updated successfully, but these errors were encountered: