The foamy algaecides were probably your culprit....I can't explain the chemistry, but I do know that they break down into chemicals that can create quite a chlorine demand. Keep it at shock level and stay the course--once you break the stuff all the way down it will be much easier to maintain.
Janet
Bookmarks