Well, without seeing your code it's a bit hard to tell where and why it crashes.