Debug your application and see where exactly your program crashes and post your back trace.