You say you get a large number of workers.
Without delving too deep, this seems pretty weird, regardless of other code.
Have you checked the number of workers (using nworkers()) after call to 
addprocs()? 
If you are getting errors and re-run the script, is addprocs() just 
accumulating more workers?
If so, perhaps try rmprocs(workers()) before addprocs()

Reply via email to