Does anybody know how to fix d3d device being lost?

thanks!!!