g_pD3DDevice->CreateVertexBuffer(4*sizeof(CUSTOMVERTEX), D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX,D3DPOOL_DEFAULT, &pSB_VB, NULL);
Then I pass a pointer to an array called stream data.
static VOID* pVertices;
pSB_VB->Lock(0, sizeof(*streamData), (void**)&pVertices, 0);
And it gives me an access violation on the lock call
//------------------------------------------------------------------------------------------------------The great logician Bertrand Russell once claimed that he could prove anything if given that 1+1=1. So one day, some fool asked him, "Ok. Prove that you're the Pope." He thought for a while and proclaimed, "I am one. The Pope is one. Therefore, the Pope and I are one."