Sometimes, the memory of my application has to reset. So, I have a try catch, where in case of the memory disappear, I have ready the catch.
My code:
try
{
if (gui.IsFacebook)
{
this.gameControllerClient.ListFriendsAsync(accessToken, gui.UserId);
}
else
{
List<string> list = new List<string>();
list.Add("Logueate en facebook para ver");
list.Add("el puntaje de tus amigos");
listBoxFriends.DataContext = list;
}
this.gameControllerClient.SelectGralRankingAsync(gui.UserId);
this.gameControllerClient.SelectScreenAsync(Convert.ToInt32(gs.ScreenId), gui.UserId);
}
catch
{
MessageBox.Show("Error al conectarse con la base de datos. Intenta otra vez.");
NavigationService.GoBack();
}
The problem is that the try catch is not working out!
If somebody have an idea, it would be great!
Thank you!

New Topic/Question
Reply



MultiQuote



|