Quote Originally Posted by newb View Post
Any ideas to avoid that crash...
Yes, correct your code And seriously, use a debugger to see why it crashes.