.donet multi-thread issue

Hi guys,
Does anybody have idea, why the attached script is resulting in to "Unknown system exception" ?
I'm aware that select function is causing it. What would be the solution to process such maxscript without exception?

Thanks.
ZT

AttachmentSize
scenescript.zip16.34 KB