УкраїнськаEnglishmRussian
Вхід/Новий
У темі немає нових постів

use valgrind for openscada: memory leakage issues


Автор Повідомлення
Повідомлення створено: 30. 01. 2017 [08:12]
manil2020
Manil Amir
Автор теми
Зареєстрован(а) с: 30.01.2017
Повідомлення: 2
hi
i need help to use ValGrind for memory checking of openscada source codes.
the ValGrind finds memory leakage but it doesnt show me line number to fix it.
i tried to compile openscada with gcc -g or -O0 but gcc compiler return me alot of error message.(i have testet widget.cpp; tsys.cpp; tcrnode.cpp with valgrind)
do you know is it related to openscada version that i am using?(I am using 0.8.0.10)
how can i fix gcc error messages to prepare code for profiling with valgrind?
tnx

Повідомлення створено: 30. 01. 2017 [08:41]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"manil2020" wrote:

i need help to use ValGrind for memory checking of openscada source codes.

Why? I haven't get into OpenSCADA the memory leaks but it early also tested by ValGrind!

"manil2020" wrote:

do you know is it related to openscada version that i am using?(I am using 0.8.0.10)

The version is too old and there allowed 0.8.16 version yet and more, for all like actions you must use 0.9 Work version instead!

"manil2020" wrote:

how can i fix gcc error messages to prepare code for profiling with valgrind?

You must know it if you try to do that or use the ready builds with the debug information's packages!

Learn, learn and learn better than work, work and work.
Повідомлення створено: 30. 01. 2017 [10:31]
manil2020
Manil Amir
Автор теми
Зареєстрован(а) с: 30.01.2017
Повідомлення: 2
tnx for response.
i need to profile memory usage because when i run the QT visualization of the project my system experience high memory usage and works slow.
(0.8.0.10)


i read valgrind tutorial and it said that to have line number of error, you need to compile the code with gcc.



4140