dglOpenGL

Code:
glBufferData(GL_ARRAY_BUFFER, ASizeOfVertices, @AVertices, GL_STATIC_DRAW);
Works fine when AVertices is static array but does not work when identical data is sent as dynamic array. What do I do to make it work with dynamic array?