Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
0.9.7
-
None
-
None
-
Windows XP Pro, Visual Studio 2003 SP1, DevPartner BoundsChecker 8.0
Description
When calling configureAndWatch(const File& configFilename, long delay), PropertyWatchdog is created but never destroyed.
I was able to fix the problem doing following source code changes:
src/PropertyConfigurator.cpp, line 114
FileWatchdog*
PropertyConfigurator::configureAndWatch(const File& configFilename)
{
return configureAndWatch(configFilename, FileWatchdog::DEFAULT_DELAY);
}
FileWatchdog*
PropertyConfigurator::configureAndWatch(
const File& configFilename, long delay)
{
PropertyWatchdog* pdog = new PropertyWatchdog(configFilename);
pdog->setDelay(delay);
pdog->start();
return (FileWatchdog*)pdog;
}
src/Thread.cpp, line 28
if (stat != APR_SUCCESS && stat != APR_INCOMPLETE) {