Error occurs when I rerun a tex file without closing the pdf file

When we make a file, we write a tex file, run it, check the pdf file, fix the tex file, rerun it, and check the pdf file again. Whenever I rerun the file without closing previous version of pdf file, it occurs an error. If I close the pdf file, it works well. But it is bothering to close the pdf file every time. How can I fix it? I am using Adobe X reader in Windows XP

-
Adobe Reader X doesn't allow the refresh of the opened files. So it is its fault if you get an error. The only way to achieve what you ask, I think, is to change the pdf reader. Try SumatraPDF. It is for Windows and it can be set up even for direct/inverse search –  Spike Jun 14 '12 at 21:26
@cmhughes Done! Thanks –  Spike Jun 15 '12 at 7:14
@Spike There is another (slightly more difficult) way: If the editor supports DDE commands, the editor could close the Adobe Reader and re-open it after compilation. TXC for example supports DDE commands (another hint: search for `acroviewR10`). –  matth Jun 15 '12 at 7:36
possible duplicate of TeXnicCenter on Windows: Building Problems –  egreg Jun 15 '12 at 19:52

Adobe Reader X locks the file after opening it, so no other program is allowed to edit the PDF while open. This is why `pdflatex` gives you an error trying to overwrite the file. Depending on how you compile your document (`interactive` or `non interactive` way), you could specify a new file for the resulting PDF, but this is quite annoyng. The best way to achieve this is to change the PDF viewer while you are working with LaTeX. SumatraPDF is a possibility on Windows (and allows direct/inverse search).