Hey joeG,
The error you are getting is a Vision error, so I am assuming it occurs at the Subtract function. You don't have to dispose of and create new image buffers for each iteration of your loop. What I would recommend is setting up a buffer for each image that you are going to be using before you go into your while loop. Set up a buffer for image 1, a buffer for image 2, and then a buffer for your resulting (subtracted) image. I tried this out and did not have any problems. Also, I attached a picture of the code to this post, so see if you can implement it into your code if it is not similar already. One thing that I did not have was triggering, so if your code is similar, then maybe you are getting the error if there is some triggering issue. Let us know how things work out for you, and let us know if you have any further questions or concerns, especially if you are still getting this error. Also, if you are still getting this error, please include more information about your software, such as which 1394 driver version you are using, etc. Thanks, and have a great day.
Regards,
DJ L.