cancel
Showing results for 
Search instead for 
Did you mean: 

What does SQLE_MOBILINK_COMMUNICATIONS mean?

Breck_Carter
Participant
0 Kudos
3,502

It's being thrown as an exception by ULConnection.Synchronize() in a C# SQL Anywhere 12 UltraLite.Net Windows Mobile application.

Does it mean that the MobiLink client can't find the MobiLink server? Nothing is showing up in the MobiLink server -ot file.

Is there any way to get more diagnostic information about this exception?

Former Member
0 Kudos

If you are getting the error SQLE_MOBILINK_COMMUNICATIONS_ERROR code, a good step to start diagnosis would be to check the system specific error code, which should be returned with the exception.

Breck_Carter
Participant

@Tyson: OK, but how? Here on SQLA we REALLY LIKE actual code examples. BTW SQLE_MOBILINK_COMMUNICATIONS_ERROR does not appear anywhere in the Help, nor in a Google Search.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Based on an example from our documentation:


public void Sync()
  {
         try
         {
            _conn.Synchronize( this );
            _inSync = false;
         } 
         catch( ULException uEx ){
            if( uEx.NativeError == ULSQLCode.SQLE_MOBILINK_COMMUNICATIONS_ERROR )
            {
               MessageBox.Show(
                    "StreamErrorCode = " + 
                     _conn.SyncResult.StreamErrorCode.ToString() + 
                     "\\r\\n"
                  + "StreamErrorContext = " + 
                    _conn.SyncResult.StreamErrorContext + "\\r\\n"
                  + "StreamErrorID = " + 
                    _conn.SyncResult.StreamErrorID + "\\r\\n"
                  + "StreamErrorSystem = " + 
                    _conn.SyncResult.StreamErrorSystem + "\\r\\n"
                  );
            }
            else
            {
               MessageBox.Show(uEx.Message);
            }
         }
         catch(System.Exception ex )
         {
            MessageBox.Show(ex.Message);
         }
  }

Full documentation page: http://dcx.sybase.com/index.html#1200en/uldotnet/error-af-development.html

Answers (0)