AppVerifier and OpenGL

P

Paul C

Has anyone been able to get an OpenGL application Logo'ed?

I'm trying to run my OpenGL application through
Application Verifier 2.50. The trouble is that
opengl32.dll cannot initialize if the Heap, PageHeap,
Locks, or Handles tests are turned on in AppVerifier.

The following program fails inside opengl32.dll
with "Access violation reading location 0xffffffff".

//////////////////////////////////////////////////
#include "stdafx.h"
#include <windows.h>
#include <gl/gl.h>

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

// Do not call this function. It's just here to force
OpenGl32.dll to load
void NotCalled()
{
GLenum err = glGetError();
}
//////////////////////////////////////////////////

The stack trace at the error is:
opengl32.dll!_GLInitializeThread@4() + 0x43
opengl32.dll!_DllInitialize@12() + 0x54
ntdll.dll!_LdrpCallInitRoutine@16() + 0x14
ntdll.dll!_LdrpRunInitializeRoutines@4() - 0x30

ntdll.dll!_LdrpInitializeProcess@20() - 0x6ec
ntdll.dll!_LdrpInitialize@12() + 0xd5
ntdll.dll!_KiUserApcDispatcher@20() + 0x7


I've tried this with several graphics cards so it seems
this is not a driver issue.

How can I run any of the memory tests in App Verifier and
avoid the problem with OpenGL?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top