lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itamar Syn-Hershko <ita...@code972.com>
Subject Re: [Lucene.Net] SpellChecker Bug
Date Thu, 03 Nov 2011 10:41:30 GMT
It should probably implement IDisposable instead

2011/11/3 Björn Kremer <bkr@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message