Maarten Maathuis <madman2003 at gmail.com> writes: >> Yes, I think I do, thanks. New version below. > > I think you should process pending after doing the rendering operation. > Okay, that makes sense. Thanks, Soren