@Riccardo

Thank you very much for your reply Riccardo!
Yes of course you are right - modifying the c4d sdk is a bad way.

I just did this to see what happens.
I will take a close look to the manual you have mentionend and will review
the memory handling in my code.

Best regards
Andi