Photoshop CS5 is deadfully sorry for error 1000

Whenever I work more than an hour on SC5 I got this error that the program is crashing I cannot do nothing about it.
Can someone let me know what I can do to stop it.
Thanks guys.

I’m deadfully sorry, but Photoshop is about to die with a NSInternalInconsistencyException exception (because Error (1000) creating CGSWindow)
