Actually I find the problem. The calls are performed in public constructor. I have now factorized these codes into a private init method, that is called when it is safe to init the private pointers.