right after I called glDrawArrays() I got:

***** FATAL EXCEPTION RECEIVED *******
"
***** Vectored Exception Handler: Received fatal exception EXCEPTION_ACCESS_VIOLATION PID: 1048

******* STACKDUMP *******
stack dump [0]
stack dump [1]
stack dump [2]
stack dump [3]
stack dump [4]
stack dump [5]
stack dump [6]
stack dump [7]

Exiting after fatal event (FATAL_EXCEPTION). Fatal type: EXCEPTION_ACCESS_VIOLATION
Log content flushed flushed sucessfully to sink


I was trying to run a test, which calls a bunch of gl funtions, I wrote a wgl class which helps to create the window and context.

The test did not use OVB, it used glVertexAttribPointer.

I have read a lot of people are using OVB with glDrawArrays, but Im not using that, so how can I make glDrawArrays() work?