Dear ROOT developers,
I am trying to develop a pub/sub application that works with root. Once subscribed it waits for a message and start processing once a message is received. I have a C++ library which handles this scenario and I already wrote the necessary wrapper classes and got it loaded to the root interpreter. (CINT)
The compiled class requires a function pointer as the callback function to call when a message arrives. I was able to pass it and the program works(compiled code) till the point where it tries to call the function pointer.
There it fails with the following message
*** Segmentation Violation **
I even tried doing the same thing using a virtual method in a derived class and found that the virtual methods are not resolved correctly between the interpreted code and compiled code.
Could some one please help me to figure out the followings?
Is it possible to register callback functions between the interpreted code and the compiled code?
Does root support virtual functions in the latest releases?
Some help on how to do this will be really helpful.
Thanks in advanced.
I wanted to pass a function pointer from the interpreted code to the shared library that I developed as callback.