It happens for every class from dynamic library (in this case it is ArrayList from‘libosp-appfw.so’) on real device and on emulator too.
It looks like undefined symbols of such dynamic libraries (new/delete – _Znaj/_ZnajRKSt9nothrow/_ZdaPv/etc) are still linked with standart’s new/delete implementations from “libstdc++.so” instead of my executable module.
Why does it happen in run? Why debugging has a different but at least correct behavior?
How correctly to override global operators new and delete on Tizen platform?
can’t replace global operator new and delete
Simple application overriding global new and delete operators like this:
gives different output results when running in debug mode or not:
When it’s executed in debug mode (or via ‘sdb launch -m debug’) log contains what I expect:
But when it’s executed in run mode (or via ‘sdb launch -m run’ or via the launch icon on device), log contains only:
It happens for every class from dynamic library (in this case it is ArrayList from ‘libosp-appfw.so’) on real device and on emulator too.
It looks like undefined symbols of such dynamic libraries (new/delete – _Znaj/_ZnajRKSt9nothrow/_ZdaPv/etc) are still linked with standart’s new/delete implementations from “libstdc++.so” instead of my executable module.
Why does it happen in run? Why debugging has a different but at least correct behavior?
How correctly to override global operators new and delete on Tizen platform?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio