Hi Borek,
I'm not sure I understand what you tried to do in the code you sent -
especially with the deletion mutex. However, if I replace the line:
CONDITION_WAIT(deleteMutex, deleteCondition);
From your search function with
_LUCENE_THREAD_FUNC_RETURN(0);
The second block of code ru
testRAMDirectorySize doesn't hang - it just crashes with heap corruption. I
didn't test with Release build, but I see no reason why this should matter.
Here's the stack trace:
msvcr80d.dll!free(void * pUserData=0x01560378) Line 1178 + 0xb bytes
C++
>
> clucene-cored.dll!lucene
OK, I'll try to fix this.
Borek
> -Original Message-
> From: Itamar Syn-Hershko [mailto:ita...@code972.com]
> Sent: Friday, July 30, 2010 1:45 PM
> To: clucene-developers@lists.sourceforge.net
> Subject: Re: [CLucene-dev] RAMDirectory testing
>
> testRAMDirectorySize doesn't hang - it ju
Hi Itamar,
Please ignore the first block, I wanted to remove it before push, but I forgot…
What I tried to simulate is the situation the thread which calls
IndexSearcher::search method ends
after IndexSearcher object is deleted. The logic in the test is, of course,
stupid, but the
situa