You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Björn Kremer <bk...@patorg.de> on 2011/11/03 11:33:40 UTC
[Lucene.Net] SpellChecker Bug
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)
{
this.Close();
}
}
Thank You
Björn
Re: [Lucene.Net] SpellChecker Bug
Posted by Itamar Syn-Hershko <it...@code972.com>.
It should probably implement IDisposable instead
2011/11/3 Björn Kremer <bk...@patorg.de>
> 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)
> {
> this.Close();
> }
> }
>
> Thank You
> Björn
>
>