Dear List Thanks to everybody who replied and in particular to Kris Woodland, Colin Henderson, John Williams and Warren Vick who conformed code ran OK on a variety of compilers. This knowledge lead to the resolution and so the MapInfo list resolved this problem before Microsoft - and the problem is with the Microsoft compiler !
By default I use the speed optimisation, on my release code, and in Visual Studio 6 this optimisation gets these twelve lines of code wrong! It does not think it needs to increment jCount while in the loop. I have turned off the optimiser just around this one function and now the code runs OK. Makes me wonder if I should turn off optimisation altogether ??!! Thanks again everyone. Regards Bob -- bob young --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18195
