- Joined
- Aug 7, 2008
- Messages
- 1
- Reaction score
- 0
I'm pushing vertices onto a std::vector and during the automated alloc the new function is throwing a std::bad_alloc at roughly 160MB (5 million vertices @ 32 bytes/vertex). This is happening in the heap and not the virtual memory (I have gobs of virtual memory available at the time). Is there a way to query for the amount of available space besides using the windows dependant Global MemoryStatusEx function? I'd prefer to remain platform independant. Also, an std solution would be nice.
cheers
cheers