this is the part of code where I catch this exaption:

try
{
here I call opengl funcs
}
catch(...)
{
and here I come after gluTessEndPolygon function
}

I have no idea ehat the type of this exaption and how can I know why
it was thrown. In some cases this code works fine. But sometimes it makes troubles. Can anybody help me with this?