Hello All, I'm obviously a CLucene Newbie. And as such I'm still confused about the memory management/ ownership in CLucene. Where do I find an overview which Objects are owned (and have to be deleted) by whom? Which calls delegate ownership from user to library? Which calls produce user-deletable objects?
So far I seemed to found out that: Field *f; Document::add( *f ); // delegates ownership of f to library Term *t; TermQuery tq(t);// delegates ownership of t to library TCHAR c = Query::toString(NULL); // delegates ownership of c to user But: IndexSearcher::seach( &tq ); // leaves ownership of &tq with user I don't really understand why CLuncene is using raw pointers after all? That's pretty old-school C++ in my opinion. Why not boost::shared_ptr or similar instead? Henning ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ CLucene-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clucene-developers
