I did some more testing and it seems that my application only crashes when I launch it in debug mode ( from Visual Studio ). If i launch my application from visual studio ( ctr + F5 ) without debugging my application works flawlessly.