Thanks for this, it might turn out to be really useful. I'm using MS Visual Studio, and when I try and run the simple example, it crashes with the error "vector iterators incompatible". This happens in the iterator structure. Any ideas what could be wrong? All the best, Tony.