Screen Freezes and black screen during game execution on Win

I am new to this forum. I really liked to read posts on this forum community so far. Recently I am facing a problem on one project I am working on.

Currently I am working on a game project, which is being developed using EGL(Embedded opengl), C++ and WinCE as the operating system. The game behaves pretty good on Win32. I have code for both Win32 and WinCE. When I run the game on the Embedded device, I can see ‘Screen Freezes’ and ‘Black Screens’ some times. And when it freezes, the device has to be restarted. Does anybody have an idea what might be messing that up. Please let me know, if anybody had encountered any such problems before.