Sander Striker wrote:
From: Sander Striker [mailto:[EMAIL PROTECTED]
Subject: RE: [PATCH] Default tagging of pools in debug mode
Hi,
We are doing something similar in subversion. It might be
useful to add this. However, this will screw up stats and
memory usage output (and it will ofcourse only work in
when APR_POOL_DEBUG is defined).
Thoughts?
Yes, this won't work. The first time apr_pool_clear is
called, we end up with a bad tag pointer. Ideas welcome.
A 'tag pool' (child of global_pool)?
Nevermind. I just thought of a good solution. I'll commit
it tomorrow. First: apr_sleep(18000 * APR_USECS_PER_SEC);
Sander
why not just use __FILE__##__LINE__
or what ever the macro is to join two things together in the preprocesor
there static strings, so no allocation required.