private static bool LoadScript()
                {
                    string scriptFileName = InternalMovieScriptDirectory + @"\InternalMovieImagesGrabber.csscript";

                    // Script support script.csscript
                    if (!File.Exists(scriptFileName))
                    {
                        Log.Error("InternalMovieImagesGrabber LoadScript() - grabber script not found: {0}", scriptFileName);
                        return(false);
                    }

                    try
                    {
                        Environment.CurrentDirectory = Config.GetFolder(Config.Dir.Base);
                        _asmHelper         = new AsmHelper(CSScript.Load(scriptFileName, null, false));
                        MovieImagesGrabber = (IInternalMovieImagesGrabber)_asmHelper.CreateObject("MovieImagesGrabber");
                    }
                    catch (Exception ex)
                    {
                        Log.Error("InternalMovieImagesGrabber LoadScript() - file: {0}, message : {1}", scriptFileName, ex.Message);
                        return(false);
                    }

                    return(true);
                }
        public static void ResetGrabber()
        {
          if (_asmHelper != null)
          {
            _asmHelper.Dispose();
            _asmHelper = null;
          }

          if (_movieImagesGrabber != null)
          {
            _movieImagesGrabber.SafeDispose();
            _movieImagesGrabber = null;
          }

          _movieImagesGrabberLoaded = false;
        }
                public static void ResetGrabber()
                {
                    if (_asmHelper != null)
                    {
                        _asmHelper.Dispose();
                        _asmHelper = null;
                    }

                    if (_movieImagesGrabber != null)
                    {
                        _movieImagesGrabber.SafeDispose();
                        _movieImagesGrabber = null;
                    }

                    _movieImagesGrabberLoaded = false;
                }
        private static bool LoadScript()
        {
          string scriptFileName = InternalMovieScriptDirectory + @"\InternalMovieImagesGrabber.csscript";

          // Script support script.csscript
          if (!File.Exists(scriptFileName))
          {
            Log.Error("InternalMovieImagesGrabber LoadScript() - grabber script not found: {0}", scriptFileName);
            return false;
          }

          try
          {
            Environment.CurrentDirectory = Config.GetFolder(Config.Dir.Base);
            _asmHelper = new AsmHelper(CSScript.Load(scriptFileName, null, false));
            MovieImagesGrabber = (IInternalMovieImagesGrabber) _asmHelper.CreateObject("MovieImagesGrabber");
          }
          catch (Exception ex)
          {
            Log.Error("InternalMovieImagesGrabber LoadScript() - file: {0}, message : {1}", scriptFileName, ex.Message);
            return false;
          }

          return true;
        }