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
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,678
    Did you actually initialize GLEW successfully?

  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;

Similar Threads

  1. Switching between "arcball" and "fps-style" camera rotation
    By bsabiston in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 10-31-2017, 12:37 PM
  2. Replies: 11
    Last Post: 08-05-2014, 05:05 AM
  3. Need help fixing "unresolved external symbol glDrawArrays" issue.
    By inlinevoid in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-26-2013, 05:05 AM
  4. Replies: 2
    Last Post: 11-26-2012, 07:27 PM
  5. Replies: 1
    Last Post: 10-26-2012, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean