QT qgfxPlugin Global Variables
I have MIPS based platform, where QT4.8.2 is running.
I am using qgfx plugin for the graphics. Similar to "Accelerated Graphics Driver Example":http://doc.qt.nokia.com/4.7-snapshot/qws-svgalib.html, I have written the acceleration for some parts.
I have a Global variable in the plugin, during initialization, I store few config values, which i get from initializing the H/W. Later when I access actual paintEngine/Device APIs for acceleration, I use these configuration values.
But what I found is during initialization, these value are set. But later these values becomes zero. When I check the memory address, even the memory address is changed.
Looks like some where the SO file is once again (After closing??) opened and my Data segment re-assigned.
I tried to put the prints in "qlibrary_unix.cpp" where dlopen is called. But the the plugin is opened only once. I am not sure what is happening.
Basically if I need to retain these values how can i do it?