Division by zero

I had an opengl program which has been working quite happily in a Windows 2000 and XP environment. I recently had a new computer with XP Professional as the OS. When I try to run the same program on it, I get a division by zero error. It gets unstuck on a line where a put glcolor3f 1,0,0
Can anybody shed some light as to why I am getting this problem

I had this same problem. Though it went away after a while. I tried setting the programs compatibility level to Win95 so try that out.