I am using IRIX Release 6.5 UNIX/SGI.  I write code in C++ and compile
it using g++.  I then run it in debug mode using gdb.

For some reason, the following call
unsigned long dwRows=236;
float   **fppBuffer=NULL;
fppBuffer=(float **)malloc(dwRows*sizeof(float *));

results in the following error message.

Program received signal SIGSEGV, Segmentation fault.
0xfa2efcc in realfree () at malloc.c:316
malloc.c:316: No such file or directory.
Current language:  auto; currently c

dwRows*sizeof(float *) has the value 944.

Does anyone know what's causing this problem?  Any help would be greatly
appreciated.

Many thanks in advance,
Peter Likonen.


Sent via Deja.com http://www.deja.com/
Before you buy.

Reply via email to