Esempio n. 1
0
 /// <summary>
 /// Dispose method that closes the database
 /// </summary>
 public void Dispose()
 {
     if (_id >= 0 && _dllLoader != null && _dllLoader.isValid() && _indigo != null && _lib != null)
     {
         _indigo.setSessionID();
         Bingo.checkResult(_indigo, _lib.bingoCloseDatabase(_id));
         _id = -1;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// </summary>
 public void Dispose()
 {
     if (_id >= 0 && _dllLoader != null && _dllLoader.isValid() && _bingoLib != null && _indigo != null)
     {
         _indigo.setSessionID();
         Bingo.checkResult(_indigo, _bingoLib.bingoEndSearch(_id));
         _id = -1;
     }
 }
Esempio n. 3
0
 public void Dispose()
 {
     if (dll_loader.isValid())
     {
         if (_sid >= 0)
         {
             if (IndigoDllLoader.InstanceId == _dll_loader_id)
             {
                 _indigo_lib.indigoReleaseSessionId(_sid);
             }
             _sid = -1;
         }
     }
 }