Attach is code for data analysis. Not mine, but I get to make it work. I am told that it stops working when from a script and occasional gives a segmentation error when run from the command line. Tomorrow, I will try to run it with either memwatch or gdb. If anybody wants to take a look at it, please do. Seems strange you can't attach a c file.