glLineStipple problem

Hi, I draw linear elements in a openGL scene with this functions.

glBegin(GL_LINE_STRIP)
glVertex3dv(…)
glEnd()

The scene is setup with…
glViewport()
gluPerspective()

It works fine.
But if I want set a stipple for the linear elements, they are not drawn correctly. If a element is not fully within the scene, your pattern move around it while the scene moves.

I use…
glLineStipple(5, 0x00FF);
glEnable(GL_LINE_STIPPLE);

Why???

sorry my english.
thank you very much