Re: [Lucene.Net] SpellChecker Bug

2011-11-03 Thread Itamar Syn-Hershko
It should probably implement IDisposable instead 2011/11/3 Björn Kremer > Hello, > > there is a little bug in the SpellChecker.cs class. The finalizer of this > class calls the close method even if the SpellChecker is already closed. > This causes an unhandled exception. > > This should work bet

[Lucene.Net] SpellChecker Bug

2011-11-03 Thread Björn Kremer
Hello, there is a little bug in the SpellChecker.cs class. The finalizer of this class calls the close method even if the SpellChecker is already closed. This causes an unhandled exception. This should work better: ~SpellChecker() { if (closed == false) {