使用Mvvmcross Sqlite社区插件执行多个查询会导致我的应用崩溃。
2015-03-26 11:03:53.594 App[986:5507] critical: at <unknown> <0xffffffff>
2015-03-26 11:03:53.596 App[986:5507] critical: at (wrapper managed-to-native) Community.SQLite.SQLite3.Prepare2 (intptr,string,int,intptr&,intptr) <0xffffffff>
2015-03-26 11:03:53.599 App[986:5507] critical: at Community.SQLite.SQLite3.Prepare2 (intptr,string) <IL 0x0000f, 0x000c7>
2015-03-26 11:03:53.603 App[986:5507] critical: at Community.SQLite.SQLiteCommand.Prepare () <IL 0x00011, 0x000b3>
2015-03-26 11:03:53.606 App[986:5507] critical: at Community.SQLite.SQLiteCommand/<ExecuteDeferredQuery>d__0`1.MoveNext () <0x00173>
2015-03-26 11:03:53.609 App[986:5507] critical: at System.Collections.Generic.List`1.AddEnumerable (System.Collections.Generic.IEnumerable`1<T>) <0x000c3>
2015-03-26 11:03:53.611 App[986:5507] critical: at System.Collections.Generic.List`1..ctor (System.Collections.Generic.IEnumerable`1<T>) <0x000a7>
2015-03-26 11:03:53.614 App[986:5507] critical: at System.Linq.Enumerable.ToList<TSource> (System.Collections.Generic.IEnumerable`1<TSource>) <0x00037>
2015-03-26 11:03:53.615 App[986:5507] critical: at Community.SQLite.SQLiteCommand.ExecuteQuery<T> () <0x000f3>
2015-03-26 11:03:53.618 App[986:5507] critical: at Community.SQLite.SQLiteConnection.Query<T> (string,object[]) <0x000e3>
有没有办法在Mvvmcross SQLite插件中使用序列化线程模式?喜欢它正在使用here?感谢
答案 0 :(得分:0)
我们的团队前几天正在看这个。目前这是不可能的。您需要将更改提交回项目,以允许您设置sqliteConnection配置。在一天结束时,我们的问题是一个同时运行多次的恶意同步过程。在你继续之前确定你真的需要这个,虽然我们其他人看你怎么做也很棒!