public RglibInterface(string libraryPath)
        {
            try {
                if (!string.IsNullOrEmpty(libraryPath))
                {
                    _libraryHandle = UnmanagedLibrary.Load(libraryPath);
                }

                _delegates = new Delegates(_libraryHandle);
            }
            catch (Exception ex) {
                Console.WriteLine(ex.Message);
                Release();
                throw;
            }
        }