public void Dispose() { if (!_disposed) { Yaz.ZOOM_connection_destroy(ZConnection); //Yaz.yaz_log(Yaz.LogLevel.LOG, "Connection Disposed"); ZConnection = IntPtr.Zero; _disposed = true; } }