So where does the crash occurs ? Just run your project with Visual Studio and check where it happens.