My program exits when calling C6accel_create().
This is how the testing goes,
first, the C6accel_app demo (comes with DVSDK 4.0) runs successfully;
then, instead of creating an executable, I make the C6accel_app demo a shared library (the main() is renamed as c6accellib());
a testing program is created then. It simply calls c6accellib(), which is the same as the main function in the C6accel_app demo program.
I expect the shared library version could run exactly the same as the original demo does. But it has issue calling the C6accel_create() function to create the C6accel handle.
Something weird I noticed is that occasionally it can create C6accel handle successfully. When I repeat running the program, once in a while it could go through the whole program without any problem. But most of the time, it just exits from C6accel_create.
Is there anything different when creating the handle in a library instead of in a standalone executable? Or the C6accel library could not be used this way?