Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!
Posted
Updated 17-Feb-11 2:49am
v3
Comments
wizardzz 17-Feb-11 13:48pm    
Are you handling the exception thrown by pressing the search button? What does it say?
DeepsMann 21-Feb-11 2:05am    
Not the exception.
I just want to restore previous state of my page.
DeepsMann 21-Feb-11 2:05am    
the answer is Tombstoning.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900