http://en.wikipedia.org/wiki/Data_Execution_Prevention
If you are using visual studio, open project properties, go to linker > advanced, in the field "data execution prevention (DEP)" choose "Image is not compatible with DEP". It was just my guess, it is very likely your problem is something else. Try step-by-step debugging and find the exact line where the app crashes.
Bookmarks