JAVIER | 3 Feb 15:39
Favicon

memory leak

I built clucene for iOS, but I'm having some problems with a
memory leak when updating documents.

I need to add some aditional text to a indexed document, but
the only store of indexed data is lucene.
So, I need to search first for the document, then delete old
document and add new document.

If searcher and writer are opened at the same time, it leaks memory.

¿Any help other than not searching and indexing at the same time?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
CLucene-developers mailing list
CLucene-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers
Ben van Klinken | 3 Feb 21:49
Picon
Gravatar

Re: memory leak

Which version are you using?

There's an IndexModifier class which helps with these sorts of scenarios

ben

On 4 February 2012 00:39, JAVIER <jalonso@...> wrote:
> I built clucene for iOS, but I'm having some problems with a
> memory leak when updating documents.
>
> I need to add some aditional text to a indexed document, but
> the only store of indexed data is lucene.
> So, I need to search first for the document, then delete old
> document and add new document.
>
> If searcher and writer are opened at the same time, it leaks memory.
>
> ¿Any help other than not searching and indexing at the same time?
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@...
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
(Continue reading)

Vivien Meng | 23 Feb 00:28
Picon

Help on CMakeLists.txt within contribs-lib folder

To whom this may concern:

I downloaded clucene-core-2.3.3.4.tar.gz. Unzipped all the files.

I'd like to make Xcode project for snowball to build a library file, but when I try to use following cmake
command line in the contribs-lib directory:
cmake –G Xcode

I get the following errors:

include could not find load file: DefineOptions

Unknown CMake command "DEFINE_OPTIONS".

How do I fix this problem?

Thanks in advance.

Vivien

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Ben van Klinken | 23 Feb 01:06
Picon
Gravatar

Re: Help on CMakeLists.txt within contribs-lib folder

Hi,

You create the contribs lib from the root project still.:

so in <clucene>/ you do

cmake -DBUILD_CONTRIBS_LIB=ON .

and then make clucene-contribs-lib

haven't used it for a while, so let us know how you go

cheers
ben

On 23 February 2012 09:28, Vivien Meng <V.Meng@...> wrote:
> To whom this may concern:
>
>
> I downloaded clucene-core-2.3.3.4.tar.gz. Unzipped all the files.
>
> I'd like to make Xcode project for snowball to build a library file, but when I try to use following cmake
command line in the contribs-lib directory:
> cmake –G Xcode
>
> I get the following errors:
>
> include could not find load file: DefineOptions
>
> Unknown CMake command "DEFINE_OPTIONS".
(Continue reading)

Vivien Meng | 23 Feb 02:10
Picon

Re: Help on CMakeLists.txt within contribs-lib folder

Hi Ben:

Thanks so much for your help.

Using your suggestion, I get an Xcode project for clucene-contribes-lib, however, the project builds but
fails to install.

So for clucene-contribues-lib, make works, but make install does not work.

Any further suggestions?

Thanks again.

-----Original Message-----
From: Ben van Klinken [mailto:bvanklinken@...] 
Sent: Thursday, 23 February 2012 11:06 AM
To: clucene-developers@...
Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib folder

Hi,

You create the contribs lib from the root project still.:

so in <clucene>/ you do

cmake -DBUILD_CONTRIBS_LIB=ON .

and then make clucene-contribs-lib

haven't used it for a while, so let us know how you go
(Continue reading)

Ben van Klinken | 23 Feb 02:31
Picon
Gravatar

Re: Help on CMakeLists.txt within contribs-lib folder

What error are you getting?
ben

On 23 February 2012 11:10, Vivien Meng <V.Meng@...> wrote:
> Hi Ben:
>
>
> Thanks so much for your help.
>
> Using your suggestion, I get an Xcode project for clucene-contribes-lib, however, the project builds
but fails to install.
>
> So for clucene-contribues-lib, make works, but make install does not work.
>
> Any further suggestions?
>
> Thanks again.
>
>
>
> -----Original Message-----
> From: Ben van Klinken [mailto:bvanklinken@...]
> Sent: Thursday, 23 February 2012 11:06 AM
> To: clucene-developers@...
> Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib folder
>
> Hi,
>
> You create the contribs lib from the root project still.:
>
(Continue reading)

Vivien Meng | 23 Feb 03:02
Picon

Re: Help on CMakeLists.txt within contribs-lib folder

Hi Ben:

We did not get any error, but no where we can find the installed library.

The following is the screen shot for the command:

vivienm-mac0603:contribs-lib VMeng$ make install
[  7%] Built target clucene-shared
[ 74%] Built target clucene-core
[100%] Built target clucene-contribs-lib
Install the project...
-- Install configuration: "RelWithDebInfo"

Thanks

On 23/02/12 12:31 PM, "Ben van Klinken" <bvanklinken@...> wrote:

>What error are you getting?
>ben
>
>On 23 February 2012 11:10, Vivien Meng <V.Meng@...> wrote:
>> Hi Ben:
>>
>>
>> Thanks so much for your help.
>>
>> Using your suggestion, I get an Xcode project for
>>clucene-contribes-lib, however, the project builds but fails to install.
>>
>> So for clucene-contribues-lib, make works, but make install does not
(Continue reading)

Ben van Klinken | 23 Feb 03:19
Picon
Gravatar

Re: Help on CMakeLists.txt within contribs-lib folder

hmm, i think it's not in the install list.

you can modify the src/contrib-lib/CmakeList.txt file to install the
headers and libs. Have a look at src/core/Cmakelist.txt for wherever
install() is called.

basically you'd need to install the contents of HEADERS and the library itself.

ben

On 23 February 2012 12:02, Vivien Meng <V.Meng@...> wrote:
> Hi Ben:
>
>
> We did not get any error, but no where we can find the installed library.
>
> The following is the screen shot for the command:
>
> vivienm-mac0603:contribs-lib VMeng$ make install
> [  7%] Built target clucene-shared
> [ 74%] Built target clucene-core
> [100%] Built target clucene-contribs-lib
> Install the project...
> -- Install configuration: "RelWithDebInfo"
>
>
> Thanks
>
>
> On 23/02/12 12:31 PM, "Ben van Klinken" <bvanklinken@...> wrote:
(Continue reading)

Vivien Meng | 23 Feb 05:40
Picon

Re: Help on CMakeLists.txt within contribs-lib folder

Hi Ben:

Thanks for your help.

As I am just at the beginning of transforming myself from a Windows .Net programmer to Mac programmer, not
very sure how to deal with cmake properly yet, but I'll have a go.

Truly grateful for your quick responses.

-----Original Message-----
From: Ben van Klinken [mailto:bvanklinken@...] 
Sent: Thursday, 23 February 2012 1:19 PM
To: clucene-developers@...
Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib folder

hmm, i think it's not in the install list.

you can modify the src/contrib-lib/CmakeList.txt file to install the headers and libs. Have a look at
src/core/Cmakelist.txt for wherever
install() is called.

basically you'd need to install the contents of HEADERS and the library itself.

ben

On 23 February 2012 12:02, Vivien Meng <V.Meng@...> wrote:
> Hi Ben:
>
>
> We did not get any error, but no where we can find the installed library.
(Continue reading)

Ahmed | 23 Feb 23:39
Picon

Re: Help on CMakeLists.txt within contribs-lib folder

Hi
2 days ago i run into the same problem, if you want to install 
contrib-libs add this lines to (at the end) src/contrib-lib/CmakeList.txt:

install(TARGETS clucene-contribs-lib
         DESTINATION ${LIB_DESTINATION}
         COMPONENT runtime )

Le 23/02/2012 04:40, Vivien Meng a écrit :
> Hi Ben:
>
> Thanks for your help.
>
> As I am just at the beginning of transforming myself from a Windows .Net programmer to Mac programmer, not
very sure how to deal with cmake properly yet, but I'll have a go.
>
> Truly grateful for your quick responses.
>
> -----Original Message-----
> From: Ben van Klinken [mailto:bvanklinken@...]
> Sent: Thursday, 23 February 2012 1:19 PM
> To: clucene-developers@...
> Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib folder
>
> hmm, i think it's not in the install list.
>
> you can modify the src/contrib-lib/CmakeList.txt file to install the headers and libs. Have a look at
src/core/Cmakelist.txt for wherever
> install() is called.
>
(Continue reading)


Gmane