Why dont you comment out code and see where exactly it crashes? Would take 5 mins. Do your own stuff and dont c&p code and when it crashes let others fix it... Its normal to have problems, and to need help but c&ping code here and expect that we fix it is simply rude.