The reasons of the hang and of this error message are probably the same: there is something that takes a lot of time to compute. Both when you do it in code and in debugger. Debugger has no magic power to calculate something faster than your app.
You can try to use Debug.WriteLine
to output actual content
and keywordPattern
. I think it easily might be that both are big enough to take ages to proceed.
iPhone beginner
2010-04-27 12:47:10