in reply to Problem on perl callbacks from XS
but I really don't know how to proceed
One thing that may help is to write a self-contained Inline::C script that demonstrates the problem. In the writing of that script, you may even find the solution yourself. If not, at least at the end of the exercise, you have some code that you can present for others to download and run.
Obviously, the more minimalistic the script, the better.
Cheers,
Rob