Exception thrown at 0x00000000 in opengl

The problem is that GLEW is initialized before OpenGL context is created and made current.
You should call glewInit() after glfwMakeContextCurrent() function.