Major Memory Heap Allocation Problems...
Help, please...
I am having a bit of trouble with the new operator.
Currently I am trying to allocate memory for 32768 vertices (D3DVERTEX) and I am getting nothing but null in return.
It would seem to me that there is not enough memory? I currently have 128meg in this dev machine, and I am not allocating any other memory via code, soooo... I am a bit confused here.
Is there an upper limit? I thought it was only limited to physical ram?
www.bworks.com
Honestly, I thought I explained the problem
D3DVERTEX* tVerts = new D3DVERTEX[4096];
makes no difference if I plug in 1 or 32768 for the allocation count, it returns null
www.bworks.com
D3DVERTEX* tVerts = new D3DVERTEX[4096];
makes no difference if I plug in 1 or 32768 for the allocation count, it returns null
www.bworks.com
Also, something to note. I tried creating another allocated array prior to where I have problems. It works great, matter of fact I can allocate all my vertices * 20, only problem is, that is not where I can use the array. ;(
Anyone else ever come across such a weird allocation problem?
Bworks.Com
Anyone else ever come across such a weird allocation problem?
Bworks.Com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement