What does "always freezes" mean? Do you mean as soon as the system loads, it always immediately freezes? If not, it isn't always. It is "often". Reading further, I see it only freezes about once an hour. You also said those purple lines "only go away if the window is closed". Well, if closing a window fixes the purple line issue, then the purple lines are related to that app you were using... you know, the one with the window that had purple lines in it. It was... oh, help me out here. Tell me what app has the purple lines. Is it Safari? If closing a Safari window eliminates the purple lines, Safari is wacky and all else is safe from purple lines.
Before you throw this... this... hey, what is it? Is it a MacBook, a Mac Mini, an iMac??? I guess all we really know is you are using OS 10.6.6... hey, why are you using an outdated OS version? Open Software Update and get all the updates. You can't expect a computer to get fixed if you haven't even done the free updates. Anyhow, before you throw it out the window, do these steps (ALL of them)...
-- Boot to the OS X Install DVD.
-- Go past the language choice.
-- Open Disk Utility.
-- Select the"Macintosh HD" at left.
-- Select the "First Aid" tab.
-- Click the "Erase" button.
-- When it is done, quit Disk Utility, and install OS X.
-- When that is done, it will restart and you will create a new admin user. You can use the same name and short name as before, since that is all erased now.
Now you can test it for at least three hours BEFORE YOU INSTALL AN-Y-THING ELSE to see if it freezes. If it does, either the RAM is bad (replace the RAM) or the logic board needs to be replaced (Don't even think it will be worth the money).