Compatibility problem in Windows Vista (7) family
You build your application in visual Studio 2005 or 2008 but The application gives error if it runs on Windows 7 or Vista event there is no problem on Windows XP.
The problem is about compaqtibility problem with your application.it may be about Data Execution Prevention architecture in windows. You can obtain such information on my other post.
You have to re-build your project in Microsoft Visual Studio (2005 0r 2008) with parameter of ;
and also you have also one more thing to do to solve this problem .Open Visual studio Command Promkp via Visual Studio Tools and call editbin with parameter shown below;