应用程序因“搜索"按钮而崩溃
大家好,
我正在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