Re: [Lucene.Net] Arithmetic Overflow

2011-03-21 Thread Troy Howard
...@gmail.com] > Sent: Monday, March 21, 2011 9:43 PM > To: lucene-net-...@lucene.apache.org > Subject: Re: [Lucene.Net] Arithmetic Overflow > > I agree that it should not throw an overflow exception. That's not > very helpful for debugging. > > The valid range of that pa

RE: [Lucene.Net] Arithmetic Overflow

2011-03-21 Thread Digy
-...@lucene.apache.org Subject: Re: [Lucene.Net] Arithmetic Overflow I agree that it should not throw an overflow exception. That's not very helpful for debugging. The valid range of that parameter is essentially [0... Int32.MaxValue-1].. That's because it needs one extra slot in it's

RE: [Lucene.Net] Arithmetic Overflow

2011-03-21 Thread Digy
ector. DIGY -Original Message- From: steven.h...@pattersoncompanies.com [mailto:steven.h...@pattersoncompanies.com] Sent: Monday, March 21, 2011 7:10 PM To: lucene-net-...@lucene.apache.org Subject: RE: [Lucene.Net] Arithmetic Overflow I'm not sure how to report this or if this is

RE: [Lucene.Net] Arithmetic Overflow

2011-03-21 Thread steven . hoff
I'm not sure how to report this or if this is working as intended, however using the recommended Search overload of IndexSearcher and passing Int32.MaxValue, results in an arithmetic overflow exception in PriorityQueue.Initialize(int maxSize). I tested this out on several platforms, including