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 2 of 2

Thread: Glew and multiple DLL project

  1. #1
    Newbie Newbie
    Join Date
    Oct 2014
    Posts
    2

    Glew and multiple DLL project

    Hi,

    I have a weird error with glew and i do not understand.
    I have 3 projects (2 dll and 1 exe), one is my 3D engine an other is a package with basics stuffs((like render a basic mesh, or manage input,...) to help the third final project.

    I init glew in the engine, the second project render some geometry, but i have a 0xC0000005: Access violation executing location 0x00000000 on the first openGL method.

    But if i init glew in the second project, it's work. It's not work if i init in the third one.

    Why i have to init glew in the dll that use Opengl method?
    Anyone have an idea?
    Thx

  2. #2
    Newbie Newbie
    Join Date
    Oct 2014
    Posts
    2
    Quote Originally Posted by -D-j-O- View Post
    Hi,

    I have a weird error with glew and i do not understand.
    I have 3 projects (2 dll and 1 exe), one is my 3D engine an other is a package with basics stuffs((like render a basic mesh, or manage input,...) to help the third final project.

    I init glew in the engine, the second project render some geometry, but i have a 0xC0000005: Access violation executing location 0x00000000 on the first openGL method.

    But if i init glew in the second project, it's work. It's not work if i init in the third one.

    Why i have to init glew in the dll that use Opengl method?
    Anyone have an idea?
    Thx
    I found, i have to link dynamically glew and not statically in my Dlls

Posting Permissions

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