1 Replies - 3535 Views - Last Post: 11 November 2011 - 07:47 AM

#1 Pablo3728  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 69
  • Joined: 13-October 09

TRY CATCH PROBLEM

Posted 09 November 2011 - 04:54 PM

Hello, I have the next situation.

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!

Is This A Good Question/Topic? 0
  • +

Replies To: TRY CATCH PROBLEM

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1526
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: TRY CATCH PROBLEM

Posted 11 November 2011 - 07:47 AM

What do you mean "not working"? Please explain EXACTLY what's happening and explain how that is different from what you are expecting to happen.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1