[ns] Memory problems
mahrenholz at rt-solutions.de
Tue Aug 14 06:35:01 PDT 2007
Ángel Cuevas Rumín schrieb:
> I am having some problems with my simulations.
> I am generating quite a lot packets and at some point during the simulation,
> it finishes with this messages in the screen:
> terminate called after throwing an instance of
> what(): St9bad_alloc
> It seems there is not more free space to allocate new entities.
> I have tried to free memory by freeing packets (Packet::free(p)). I have
> also tried some other solutions but they didn't work.
> I would appreciate any kind of help from someone who had the same problem in
> the past or someone who knows which is the problem.
For any memory problem I suggest to use valgrind (http://valgrind.org).
It saved my day several times.
Dr.-Ing. Daniel Mahrenholz
Oberländer Ufer 190a
networks you can trust.
More information about the Ns-users