hm does the whole OS freeze or just an application? Have you tried pressing Ctrl + Alt + F[1-6] ? That should get you into another Virtual Desktop... you could then type
ps -U <username>
and then kill the PID number of the crashed application.
Give more information so that someone (better than me :P) can reply you