The routine referenced in your original posting is a part of what used to be called the Picture Toolkit. It contains a FOR loop that is accumulating a string. The question is how large the input color table is because the loop repeats once for every value in the array.
Try this: Place a breakpoint on the color table array wire going into the FOR loop. Make sure that this breakpoint is inside the case structure but outside the loop. You want the code to break before the loop is started.
Next, put a probe on the output of the array size function that's tied to the color table array and minimize (NOT close)everything, and run your code. When execution hits the breakpoint, LV will bring the diagram to the front.
If the program crashes befor
e reaching the breakpoint, we know to look elsewhere. If it doesn't crash before getting to the breakpoint, verify the size of the array coming into this subvi, as reported on the probe. I would expect a very large number.
If you see a very large number, backtrack to the routine that's calling this one to see where the morbidly obese array is coming from...
If you don't see a large number on the probe, turn on execution highlighting and click the continue button and watch for what the code is doing when the crash comes...
Alternately, if the code is small enough (and you are willing) I would be willing to look at it to see if I can spot the problem.
Hang in there. This is an interesting problem, but on the whole not too bad of a one so far. Extremely irritating, yes. Bad, no.
Mike...
mporter@arielcorp.com