Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 (Deutsch) » UltraLite - C- und C++-Programmierung » Anwendungsentwicklung » UltraLite C++-Anwendungsentwicklung mit Embedded SQL » Anwendungen eine Synchronisationsfunktion hinzufügen

 

Kommunikationsfehler während der Synchronisation

Der folgende Code veranschaulicht, wie Kommunikationsfehler aus Embedded SQL-Anweisungen verarbeitet werden.

if( psqlca->sqlcode == SQLE_MOBILINK_COMMUNICATIONS_ERROR ) {
     printf( "  Stream error information:\n"
             "    stream_error_code = %ld\t(ss_error_code)\n"
             "    error_string      = \"%s\"\n"
             "    system_error_code = %ld\n",
     (long)info.stream_error.stream_error_code,
     info.stream_error.error_string,
     (long)info.stream_error.system_error_code );
}

SQLE_MOBILINK_COMMUNICATIONS_ERROR ist der allgemeine Fehlercode für Kommunikationsfehler.

Um UltraLite klein zu halten, übergibt die Runtime-Engine Zahlen anstelle von Meldungen.