Turn on debug build and that will probably give you the possibility to add breakpoints and will also give you som row numbers at the stact trace.
Your problem is that you are not handling if p.Length = 0, that occurs if there is no process with the name "FirstLine".
Have you also renamed your process / application ?
bang
2009-06-09 11:01:54