Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.7
    • Fix Version/s: None
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      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) {

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              dbertrand David Bertrand
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: