windows phone 7 - Application crash when using 3G -



windows phone 7 - Application crash when using 3G -

i developed application wchich using sockets connect several servers. application works fine wi-fi connection crashes on 3g connection (of course of study on real device, on emulator works fine). cannot debug due fact works wken phone connected pc. how handle problem? in advance

subscribe both application.unhandledexception (for ui thread exceptions) , appdomain.current.unhandledexception (for unhandled exceptions) , seek write file before process terminated.

after application crashes, utilize isetool command line re-create info machine.

application.current.unhandledexception += (s,e) => writeexceptionfast(e.exceptionobject, "applicationunhandled"); appdomain.current.unhandledexception += (s,e) => writeexceptionfast(e.exceptionobject, "appdomainunhandled"); private void writeexceptionfast(exception ex, string name) { string filename = path.changeextension(name, ".log"); using (var store = isolatedstoragefile.getuserstoreforapplication()) using (var stream = store.createfile(filename)) using (var author = new streamwriter(stream)) { writer.writeline(ex.tostring()); writer.flush(); } }

windows-phone-7

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -