Problem with glPolygonMode

I have created a multi-windowed opgl app, in wich i display severals objects, and “all” runs perfectly, But, using the glPolygonMode function with the params:
glPolygonMode(GL_FRONT_AND_BACK,GL_LINE) it is impossible to render objects like cylinder, disk or partial disk using the appropriate glu functions (gluCylinder, gluDisk,gluPartialDisk). in fact, the problem appears when the window is resized; the error sent by the system is something like: “error division by zero in GLfloat”.
however, the problem doesn’t appears with gluSphere() .
(I resize the windows calling the glMatrix() and gluPerspective() functions.)

I would like to know if someone could tell me why it doesn’t work correctly and could give me a solution. thanks.

PS:sorry for my bad english.

Humm… i found the error: just using the glu “QuadricDrawStyle” function…