简体   繁体   中英

System.ExecutionEngineException occuring on fetching contacts in windows phone 8.1 xaml

I am creating an windows phone 8.1 xaml application . In which it takes phone contacts and populated in a list.

I used the following codes to implement this.

 var contactStore = await ContactManager.RequestStoreAsync();

 var contacts = await contactStore.FindContactsAsync();

It works good in testing with emulator with less number of contacts. But while testing with real device i breaks after calling FindContactsAsync method.

And i am getting this exception

An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.

Why this happening? And note that in my phone there are about 1000 contacts.

Please help!

To work around this issue, you can disable concurrent garbage collection by modifying the application's configuration file. For more information, see How to: Disable Concurrent Garbage Collection.

http://msdn.microsoft.com/en-us/library/at1stbec.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM