DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Segmentation fault in C++ (http://www.daniweb.com/forums/thread63956.html)

willy2511 Dec 5th, 2006 10:21 pm
Segmentation fault in C++
 
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

Narue Dec 5th, 2006 10:37 pm
Re: Segmentation fault in C++
 
>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.

John A Dec 5th, 2006 10:37 pm
Re: Segmentation fault in C++
 
Quote:

Originally Posted by willy2511 (Post 285506)
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.

Salem Dec 6th, 2006 4:17 pm
Re: Segmentation fault in C++
 
> I'm using the library "memory.h"
Now what stone-age-16-bit fossil are you using perchance?


All times are GMT -4. The time now is 5:04 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC