Results 1 to 2 of 2

Thread: glutKeyboardFunc() causing Access Violation error

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    2

    glutKeyboardFunc() causing Access Violation error

    So i've tried to add some input handling to my project, and created new header for that. I made initialization function which calls glutKeyboardFunc() for keyboard handling. As a parameter I used my own made void function: void keyboard_func(unsigned char key, int mouse_x, int mouse_y);, and it shouldn't cause that violation error. So I'm asking, what would cause it? And btw, the initialization function is in .cpp file of course :3

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    2

    Re: glutKeyboardFunc() causing Access Violation error

    Ok found the problem which cause that memory error: It probably couldn't initialize the keyboard function before display function, and then causing memory error

Similar Threads

  1. Access violation error and type error.
    By hsunteik in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-13-2017, 07:16 AM
  2. glGenVertexArrays Access violation Error
    By enigmagame in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 10-10-2011, 03:50 AM
  3. glMultiDrawElements() causing an access violation
    By Garanixx in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 03-25-2011, 06:18 PM
  4. Access violation error, when select an item of menu
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-11-2004, 05:26 PM
  5. Access violation error w/ Red Book code
    By MentalRotation in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-09-2003, 05:02 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