glRasterPos problem

The following function crashes, when the rasterPos is out of screen (not out of window). Means, when I drag the render window so much off screen, that the text to be rendered will be offscreen.

void Part3DPane: rintString(char *s)
glPushAttrib (GL_LIST_BIT);

glCallLists(strlen(s), GL_UNSIGNED_BYTE, (GLubyte *) s);
glPopAttrib ();


glRasterPos3i(xoff+len*2, 0, 0);

W2K with TNT2

It doesn’t crash on a W2K with TNT.
How can I come around that problem? I don’t
want to use Windows functions as I have to be UNIX compatible.

Thanks for any suggestions.