Search code examples
xamarinxamarin.formsrealm

Can't I create non-persistent object on Realm for Xamarin?


I'm making app with using Xamarin.forms and Realm for Xamarin.

I often create object based on Realm but I use just new MYCLASS instead Realm.GetInstance ().CreateObject. Because it's a object that I don't want to store.

For object I want to store, of course I used CreateObject within Write().

It worked very well before 0.77.1. I updated to 0.77.1 and there is weird runtime error that says "Attempted to access detached row". And I debug it and object is ruined when original(stored one)'s property is modified by copy one.

I think it might cause that error. But Why?

I can't not use it that way?


Solution

  • Please try to upgrade to latest version (0.77.2). Seems the problem is gone, at least for me :-)