Hi OMNET-Community,
i discovered several memory leaks in my simulation and now i want to
use valgrind in order to find them.
I use the following command to start a memory check, however the
omnetpp.ini can´t be found:
valgrind --leak-check=yes ./out/gcc-release/src/inet -c
myconfiguration -r 0 -u Cmdenv
----> Output:
"
==22327== Memcheck, a memory error detector
==22327== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et
al.
==22327== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h
for copyright info
==22327== Command: ./out/gcc-release/src/inet -c myconfiguration -r 0 -
u Cmdenv
==22327==
OMNeT++ Discrete Event Simulation (C) 1992-2010 Andras Varga, OpenSim
Ltd.
Version: 4.1, build: 100611-4b63c38, edition: Academic Public License
-- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
<!> Error during startup: Cannot open ini file `omnetpp.ini'.
End.
...
...
"
Furthermore i want to mention that the omnetpp.ini - file isn`t in the
same folder than my inet-Executeable. It is different from this
example (
http://groups.google.com/group/omnetpp/msg/1cdc08939d06e6c9).
How can i define the target of "myconfiguration"? -myconfiguration is
a configuration of the omnetpp.ini file. The "omnetpp.ini" is located
in the following directory: myinetmanet/scenarios/testscenario/
omnetpp.ini
Greetings,
Felix