The sub-window is used to render the 3D. I am not able to see the 3D on the sub-window.
This sounds like an OpenGL problem. If you are using OpenGL, be sure the level of OpenGL you are programming against is supported on that platform.