Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Issue with VBO: program crashes with "Unhandled exception" when call glGenVertexArray

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    2

    Question Issue with VBO: program crashes with "Unhandled exception" when call glGenVertexArray

    Hi,
    i've a really tedious problem using OpenGL with VBO.
    I just begin to code and following a tutorial step by step (on vertex, shader, 3D world, etc...) i finally draw a rotating 3D cube.
    On my desktop PC, all works.
    On my notebook the program give me this error
    Unhandled exception at 0x777615de in ogl_tutorial_1.exe: 0xC0000005: Access violation.

    Using debugger i found the problem is when try to call
    Code :
    glGenVertexArrays(1, &BufferIds[0]);

    I use GLEW and freeGLUT as addictional libraries.

    Searching on google problem seems to refer to VBO hardware support. Is that the problem?
    I write here the HW config of my two PC:
    Desktop
    Intel core i7
    ATI HD5770

    Notebook
    Intel core i7 3610QM
    nVidia GeForce GT630M

    On both i use Win 7 Pro x64 and Visual Studio 2010 as programming IDE

    Can someone help me??
    (sorry for my english mistakes)

  2. #2

  3. #3
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    2
    Yes, all initializations are ok.
    So searching hardly on web finally i found a solution!!
    I post it here so if someone have the same problem can solve =)
    http://openglbook.com/glgenvertexarr...ult-with-glew/
    or, briefly (from the site above)
    To fix this, add the following statement right above your call to glewInit:
    glewExperimental = GL_TRUE;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •