Note: I don't know if this is a software or hardware problem yet.
Problem description:
When I run certain applications, primarily 3D games, I get some odd graphics artefacts - little boxes or lines of white or other color here and there on the screen for example. Sometimes they are stationary, other times they move around or flicker. There are never any problems with displaying video, either in games, at youtube or in windows media player. The problem only occurs in some games, primarily 3D games.
There are also sometimes problems with sound - usually the sound starts looping indefinitely or a persistent high-pitched noise is played; it is often preceded by "scratching" noises. This occurs sometimes in games, but less often and more intermittently than the graphics problem. It also occurs in other applications - eg. playing music in windows media player. This error seems to almost always occur when music is played either by a game or an application, it's just a matter of time.
During newer games, the games often run unusually slowly, but this can vary.
Some games refuse to run outright, or cause a reboot (I've set windows to give blue screen of death in stead of rebooting automatically now, will inform if I get any BSOD error data). Others can hang the system, forcing a hard reset. (Num Lock key doesn't turn on/off the LED, and the computer does not respond to Alt-Tab, Windows key or Ctrl-Alt-Del even if repeated)
My system:
AMD Athlon Barton 3000+
ASUS A7N8X-X motherboard (includes onboard sound card)
2x512 MB PC3200 DDR RAM
80 GB Maxtor 7200 rpm HDD, 8 MB buffer
Samsung 52x CD-RW drive
Codegen 6066 CA tower, 300 W PSU
Club 3D nVidia GeForce 7600 GT AGP video card, 256 MB GDDR3 memory. - NOTE: Problem originally arose with my old nVidia GeForceFX5700 Ultra video card, and was more severe then; I have tested the new card in another computer where it works just fine.
Running Windows XP SP2
DirectX9.0c
Forceware 163.71 graphics driver from nVidia, WHQL certified.
Antivirus: AVG.
Spyware programs: Ad-Aware and Spybot Search & Destroy.
Firewall: Comodo Firewall Pro.
I would greatly appreciate any suggestions as to what could be wrong or how I can go about troubleshooting the issue.