simple animation crashes windows

I just want to make 360º rotation to a camera and when i tell Blender to Render or Aminate, it crashes.
I’m using this code with a camera Parented to an Empty:

import Blender
from math import *

em = Blender.Object.Get (“Empty”)
r = 1 # angle in degrees i wan’t to rotate
conversion = r * (2 * pi / 360)
em.RotZ = em.RotZ + conversion
Blender.Redraw ()

Does anyone have a clue?
Thank you very much

Sorry, it’s my computer that is getting nuts!! :<

After all, it was not my computer. I format and install everything again.
I have the code above attatched to the Empty in FrameChanged mode.

After send it Render 2 or 3 times, it crashes.

Can someone help me, please?

After all, it was not my computer. I format and install everything again.
I have the code above attatched to the Empty in FrameChanged mode.

After send it Render 2 or 3 times, it crashes.

Can someone help me, please?

that’s because the code is called recursively. Take away the Redraw line at the bottom.

Martin