It is unlikely that you get an exception and all other people with the same code get none. Compare your code with the included cpp and check also your VC++ setup. Follow the instructions in the manual. Maybe the struct alignment is wrong or something like that.