Hi,
I've got a "Segmentation Fault" error in C++ when trying to allocate a vector with a dimension of 2 million. I'm using the library "memory.h"
Any help is welcome
willy

Recommended Answers

All 3 Replies

>I've got a "Segmentation Fault" error in C++ when trying to allocate a vector with a dimension of 2 million.
2 million what? Chances are good you're exceeding the limits of a single allocation request. But it's hard to say without seeing some code.

Hi,
I've got a "Segmentation Fault" error in C++ when trying to allocate a vector with a dimension of 2 million.

Mmm... not enough memory? If that's not it, try posting some code (or at least the part where the error occurs). Thanks.

> I'm using the library "memory.h"
Now what stone-age-16-bit fossil are you using perchance?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.