bug in NHunspell spelling checker
<p>I am using NHunspell for checking spelling.I added NHunspell.dll as a reference to my asp.net page.I added the namespace System.NHunspell.
The problem i am facing is related to IDisposible.
I put the downloaded code of NHunspell inside the button event.</p>

<p>protected void Button1_Click(object sender, EventArgs e)
        {</p>

<pre><code>        using (Hunspell hunspell = new Hunspell("en_us.aff", "en_us.dic"))
        {
            bool correct = hunspell.Spell("Recommendation");
            var suggestions = hunspell.Suggest("Recommendatio");
            foreach (string suggestion in suggestions)
            {
                Console.WriteLine("Suggestion is: " + suggestion);
            }
        }

        // Hyphen
        using (Hyphen hyphen = new Hyphen("hyph_en_us.dic"))
        {
            var hyphenated = hyphen.Hyphenate("Recommendation");
        }


*  using (MyThes thes = new MyThes("th_en_us_new.idx", "th_en_us_new.dat"))
        {
            using (Hunspell hunspell = new Hunspell("en_us.aff", "en_us.dic"))
            {
                ThesResult tr = thes.Lookup("cars", hunspell);
                foreach (ThesMeaning meaning in tr.Meanings)
                {
                    Console.WriteLine("  Meaning: " + meaning.Description);
                    foreach (string synonym in meaning.Synonyms)
                    {
                        Console.WriteLine("    Synonym: " + synonym);

                    }
                }
            }


        }
</code></pre>

<p>The * shown above is the line of error.The error is:
" type used in a using statement must be implicitly convertible to 'System.IDisposable'".</p>

<p>Also there is a warning on that line :"'NHunspell.MyThes.MyThes(string, string)' is obsolete: 'idx File is not longer needed, MyThes works completely in memory'";  </p>

<p>Can any one help me to correct this???  </p>

<p>ok, I changed that line to MyThes thes = new MyThes("th_en_us_new.dat"); bug is gone.</p>

<p>But there is an exception "AFF File not found: E:\programfiles\visual studio\Common7\IDE\en_us.aff". what i should do??</p>
