Display lists with OO C++

I cant seem to initialise a display list using GenLists (i get the return value 0) in a class, it works fine in the ‘main’ bit of my code. Any Ideas?

Make sure you have a context current.