See in windows mobile if there is an error code saved n if you restart the IDE and run then it will show the same error which it shows at that time. but if it is not saved then it will run the previous code without error.
sorry, i forget to post in this thread for a year. what actually hapened was that some files of visual studio IDE got currupted (or something else may have happened). But as i reinstalled visual studio IDE my problem was solved.