Problem with Multiple window rendering!

Hi friends,

I’m trying to make a dual player game using haptic device library called Chai3D and Opengl for graphics. I created two separate functions each windows and I’m trying to update graphics and haptic rendering sections in each windows. But I’m experiencing some problems!. Windows looks freeze once I execute these functions. Seems to me that it’s problem with Glutmainloop(). But I cant troubleshoot where exactly I’m wrong. It’ll be a great help if some one give me feedback on this.

Thanks in advance
vinil