Skip to Content
0
Former Member
Mar 18, 2011 at 02:53 PM

[Sybase unwired platform]My application don't import form the server

27 Views

Hi,

i tried the application form the blog :

/people/joseph.berthe/blog/2010/10/21/sybase-unwired-platform-for-iphone-40-part-22

When i execute it ,the user interface doesn't display .

That's the code used to connect to the SUP server and wait for imports

[MyFlights_MyFlightsDB beginOnlineLogin:@"supadmin" password:@"s3pAdmin"];

		while([MyFlights_MyFlightsDB getOnlineLoginStatus].status == SUPLoginPending)
			
		{
			
			[NSThread sleepForTimeInterval:0.2];
			if(databaseCH.loginFailureCount > 0) {
				NSLog(@"login failed."); 
			}
			
		}
		//Subscribe to the package. [
		
		
		[MyFlights_MyFlightsDB subscribe];
		
		while([databaseCH importSuccessCount] < 1) {
			[NSThread sleepForTimeInterval:0.2];
		
			NSLog(@"problem is here");
		
		}
		[window addSubview:navController.view];     
		[window makeKeyAndVisible];

in the console a boucle of the message "problem is here" appear ,

Have you any idea about the cause of this?

Thanks for advance