c# - Win8.1 App - TryGetItemAsync freezing -



c# - Win8.1 App - TryGetItemAsync freezing -

i have problem code:

static public async task<bool> isfileexists(string filename) { var item = await applicationdata.current.localfolder.trygetitemasync(filename); homecoming item != null; }

if file created, programme freezing (but not always!) in line var item = await applicationdata.current.localfolder.trygetitemasync(filename);. file in 100% good.

thanks help, read exactly http://blog.stephencleary.com/2012/02/async-and-await.html , add together .astask().configureawait(false) var item = await applicationdata.current.localfolder.trygetitemasync(filename) , work good.

c# windows-store-apps windows-8.1

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -