private void LoadDict() { if (gren == null) { lock (gren_lock) { string dict = System.Configuration.ConfigurationSettings.AppSettings["dictionary_path"]; Console.WriteLine("Loading dictionary {0}", dict); gren = new SolarixGrammarEngineNET.GrammarEngine2(); gren.Load(dict, true); } } }