problem with glGenLists

I want to draw lines using the glList but its not working with lines other shapes i can draw using creating the list but why lines are not working with list please help me…

Thanks in advance

Simply saying that a function isn’t working isn’t really helpful. You’ve obviously got a bug in your code. But we can’t tell what that is based solely on a description.