Hi Robert
You need to right click on the MY COMPUTER icon on your desktop > choose PROPERTIES then the ADVANCED tab > click the SETTINGS button in the PERFORMANCE section > then the ADVANCED tab > click the CHANGE button in the VIRTUAL MEMORY section.
It is reccomended to use 2 - 3 times the amount of RAM as VIRTUAL MEMORY - you can set the amount manually, INITIAL SIZE to say 1000MB and MAXIMUM to 1500MB > then click the SET button.
Another thing to check on is making sure you don't have any unecessary programs running in the background i.e. things like Quicktime only need to be opened when they are used rather than using memory all the time.
The last option (but a very good idea) is to purchase more RAM, 512 will run XP but not very well, try installing another 512 or if you can afford to 1GB of extra RAM. This will make a huge difference to the way you computer performs.
HTH