Under Linux it works properly, this seems to be a Mac only problem. Quite obscure, because the related code is platform independent. But it seems that the Mac version still has memory problems; but not with "bool" anymore, I've checked this with an emulation (bool=char) under Linux, with valgrind.