应用程序因“搜索"按钮而崩溃 [英] Application crashes due to Search button
问题描述
大家好,
我正在WP7中工作,并且在我的应用程序运行时,如果我使用PhotoChooserTask启动相机"或图片库",并且如果不小心按下了搜索"按钮,则我的应用程序将崩溃.
设备的通常行为是,如果我依次点击相机"按钮和搜索"按钮,则不会崩溃,而只是将应用程序最小化了.
为什么会发生这种情况,我该如何解决?
此外,静态类的静态变量将为null.
即使按下搜索按钮",有什么办法可以保持某些值不变??
请帮我. :sigh:
在此先感谢!
Hi everyone,
I''m working in WP7 and while my application is running, if I launch Camera or Picture Library using PhotoChooserTask and if accidently Search button gets pressed then my application crashes.
Usual behavior for my device is if I tap the Camera button and then the Search button, there is no crash the app just gets minimized.
Why does this happen and how can i resolve it?
Also, the static variables of the static Class gets null.
is there any way to keep some values persisting even if Search Button is pressed.?
Please help me. :sigh:
Thanks in advance!
推荐答案
请参阅此
http://forums.create.msdn.com/forums/p/75745/462271.aspx
see this
http://forums.create.msdn.com/forums/p/75745/462271.aspx
这篇关于应用程序因“搜索"按钮而崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!