Does it just pop up without warning ?
If yes it sounds like the blue screen of death !
It can be caused by a number of problems including missing drivers, memory problems and overheating... among other things.
The only way you can get rid of the error is if you fix the specific problem, or...