当我们尝试更新realm db多次抛出跟随错误
var tl = new TimelineMax({
onComplete:complete,
});
tl.to("img", 3, {rotation:360, transformOrigin:"150px 150px", ease:Linear.easeNone});
function complete(tl) {
tl.restart(); // 0 sets the playhead at the end of the animation
}
我们已经尝试将我们的代码保留在try和catch中但它仍然抛出运行时错误并且应用程序崩溃
代码,这里NHANDLED EXCEPTION:
System.ObjectDisposedException: Safe handle has been closed
at (wrapper managed-to-native) System.Object:wrapper_native_0xda0c96a0 (intptr)
at Realms.SynchronizationContextEventLoopSignal+EventLoop+<Post>c__AnonStorey0.<>m__0 (System.Object _) [0x00012] in <550621f4184f47c0bdfce087c391c293>:0
at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <d855bac285f44dda8a0d8510b679b1e2>:0
at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <d855bac285f44dda8a0d8510b679b1e2>:0
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <d855bac285f44dda8a0d8510b679b1e2>:0
at (wrapper dynamic-method) System.Object:f9edc18f-c720-423d-8576-23c20d8f6a89 (intptr,intptr)
是一个普通的类(不是从RealmObject派生的),但是EventType
类是Response
并且它有RealmObject
声明为
opportunitiesList
及其源自public IList<Opportunity> opportunitiesList { get; }
RealmObject