Hi,
I thought I should come back and let you know how this was solved.. It was completely unrelated to all the problem solving I was doing. But I was setting my visionSensor to streaming at the beginning of the script, when I removed this it worked, but did not crash. I found out that the vision sensors stream automatically in the main V-REP script - so if you try and re-stream them there is a memory leak or something and MatLab crashes intermittently.
--