Well, that's obviously not the full code so we can't help you figure out what's causing the lock-up...