|
|
|
|
getMtlMaterialName line: usemtl black last working line getMtlMaterialName usemtl white mat_name:white getMtlMaterialName line: usemtl white last working line getMtlMaterialName usemtl red mat_name:red getMtlMaterialName line: usemtl red last working line terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted |
new
.
|
|
Are you sure you have enough available memory to run your program? std::bad_alloc typically gets thrown when memory can't be allocated by new. If you should have enough memory to run said program, then it may be a good idea to check for memory leaks. You may also be running into an issue where you'd normally have enough memory, but virtual address space fragmentation is making it impossible for your allocator to procure a continuous region of memory large enough to fit an exceedingly long string. -Albatross |
`line' is global |
also, I don't see it starting with `ne' in your logs. |
run your program through use a debugger