I've white-listed you, so you should be able to post in the appropriate forum. Happy posting.
I think I tracked down the issue. I was actually trying to allocate buffers in the loop, but using the c++ interface which automatically deallocates them when the buffer object goes out of scope. I was therefore using pointers to deallocated buffers. I'm sure that can cause all kinds of bad behavior, including what I'm was seeing here.