>Move the whole statement to some function or method so to have the possibilities to debug. Maybe the m.loProcess isn't an object when you press ESC? if the m.loProcess is a local variable maybe it is out of scope? All of this is only theoretical :o)
>
Yes, the trick here is to keep Process object visible in the calling functions chain.
If it's not broken, fix it until it is.
My Blog