[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: pools buggy

From: Ich Selbst <ichselbst_at_gmx.ch>
Date: 2002-11-10 15:22:51 CET

 
> Here's the problem, pool is NULL. I wonder why? It's the result of
> calling apr_pool_parent_get on the lock's pool. If I do
>
> p = svn_pool_create (NULL);
> pp = apr_pool_parent_get (p);
>
> then pp is the global_poll, not NULL. Is it different because it's in
> a cleanup handler, or is it different because it's Windows?

just updated the apr library from cvs and apr_pool_parent_get(lock->pool)
in libsvn_wc/lock.c line 138 still returns NULL.
lock->pool is not NULL so it seems to be a valid pool.

If I create two pools it works:

parentpool = svn_pool_create(NULL);
pool = svn_pool_create(parentpool);

//now here the svn function calls occur

svn_pool_destroy(pool);
svn_pool_destroy(parentpool);

Is this the required calling convention?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 10 15:23:52 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.