android - Using WeakSubscribe from MvvmCross -
i need subscribe inotifypropertychanged of 1 of models in viewmodel. research led me to: how update parent viewmodel when child viewmodel updated.
i tried using weaksubscribe suggested in #3 after entering , leaving view several times whole application either freezes or crashes.
here's code init() in viewmodel:
foreach (var sale in model.sales) { sale.weaksubscribe(delegate { model.calculatesalestotals(); }); } when app crashing, i'm getting sigsegv:
i/mono-stdout(30334): mvx:diagnostic:227.00 showing viewmodel invoiceauthorizationviewmodel i/activitymanager( 391): start u0 {flg=0x10000000 cmp=com.desco.escmobile/escmobile.android.views.invoiceauthorizationview (has extras)} pid 30334 i/mono-stdout(30334): mvx:diagnostic:227.19 loading new viewmodel intent extras d/dalvikvm(30334): gc_explicit freed 783k, 5% free 17252k/18068k, paused 2ms+8ms, total 53ms i/mono-stdout(30334): mvxbind:warning:227.59 unable bind: source property source not found cirrious.mvvmcross.binding.parse.propertypath.propertytokens.mvxpr opertynamepropertytoken on null-object i/mono-stdout(30334): mvxbind:warning:227.61 unable bind: source property source not found cirrious.mvvmcross.binding.parse.propertypath.propertytokens.mvxpr opertynamepropertytoken on null-object i/mono-stdout(30334): mvxbind:warning:227.63 unable bind: source property source not found cirrious.mvvmcross.binding.parse.propertypath.propertytokens.mvxpr opertynamepropertytoken on null-object i/dalvikvm(30334): jit: resizing jittable 4096 8192 i/activitymanager( 391): displayed com.desco.escmobile/escmobile.android.views.invoiceauthorizationview: +755ms (total +1s259ms) i/activitymanager( 391): displayed com.desco.escmobile/escmobile.android.views.invoiceauthorizationview: +1s279ms i/activitymanager( 391): process com.android.vending (pid 30179) has died. e/mono-rt (30334): stacktrace: e/mono-rt (30334): e/mono-rt (30334): e/mono-rt (30334): ================================================================= e/mono-rt (30334): got sigsegv while executing native code. indicates e/mono-rt (30334): fatal error in mono runtime or 1 of native libraries e/mono-rt (30334): used application. e/mono-rt (30334): ================================================================= e/mono-rt (30334): i/activitymanager( 391): process com.desco.escmobile (pid 30334) has died. i/windowstate( 391): win death: window{42cf2e60 u0 com.desco.escmobile/escmobile.android.views.invoiceauthorizationview} w/activitymanager( 391): force removing activityrecord{42e05b20 u0 com.desco.escmobile/escmobile.android.views.invoiceauthorizationview}: app died, no saved st ate i/windowstate( 391): win death: window{427bfbf0 u0 com.desco.escmobile/escmobile.android.views.dispatchlistview} i/windowstate( 391): win death: window{42b32b50 u0 com.desco.escmobile/escmobile.android.views.invoicedetailsview} i/windowstate( 391): win death: window{43003e48 u0 com.desco.escmobile/escmobile.android.views.invoiceauthorizationview} i/windowstate( 391): win death: window{42aea920 u0 com.desco.escmobile/escmobile.android.views.dispatchdetailsview} d/dalvikvm(30434): late-enabling checkjni i/activitymanager( 391): start proc com.desco.escmobile activity com.desco.escmobile/escmobile.android.views.invoiceauthorizationview: pid=30434 uid=10086 gids={50086, 3003, 1015, 1028} d/zygote ( 129): process 30334 exited cleanly (255) any suggestions?
Comments
Post a Comment