Thanks, Hyperhacker! I have had a few stack overflows, as well - but VB always (as far as I can see) seems to report these properly - so I don't think that's the problem here. This project was a conversion from Fortran - so instead of trying to work with big arrays of real numbers, I'm now breaking it all down into Types, each containing lots of little 3-element vectors. It's a long job, but the new code runs much more reliably - and goes about twice as fast, too...