Most likely, you are using a library/dll/control that has been updated in XP. So when you recompile on the XP machine, it compiles with the newer version and runs correctly. If you need the code to run on different OS's, try using the most recent version of the file in question on all systems...