title: Access violation. when using GLEW and GLFW
body: <p>I am sure that everything is linked correcly. I initially was using glload and glfw from the Unofficial GLSDK but then I decided to do away with glload which meant that I had to use glew in order to get at the modern headers. </p>
  
  <pre><code>#include &lt;GL/glew.h&gt;
  #include &lt;GL/glfw.h&gt;
  </code></pre>
  
  <p>I have included glew before glfw as per the instructions.</p>
  
  <p>During run time the OpenGL window opens</p>
  
  <pre><code>//(relevant code)
  if(!glewInit()) {return -1; }
  if(!glfwInit()) {return -1; }
  glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
  glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
  glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
  // also tried glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE);
  
  if(!glfwOpenWindow(1024, 768, 8, 8, 8, 8, 24, 8, GLFW_WINDOW)){
      glfwTerminate();
      return -1;
  }
  
  glfwSetWindowTitle("OpenGL 3.2");
  
  //init method
  glGenVertexArrays(1, &amp;vao);  //&lt;&lt;  Access violation here.
  </code></pre>
  
  <p>Any ideas what my problem is here?</p>
  
  <p>I have looked at. "Access violation using VBO with glew" But it was no help. </p>