Hi, I have a class that I use as a callback handler for extensions (cef_register_extension). In my handler I have the following structure: The render process sends a message to the browser process. This then executes the code and sends a message back to the render process. And if a function was passed as the last additional parameter when the function was called in JavaScript, it is called with the return value by the browser process as a callback function.
Here's my problem: Everything works fine the first time you call the native function. However, when I call the function a second time, the global variable in which I save the instance of my handler only contains scrap. To be precise, the variable is shredded after the first time a cef function is called in the browser process after receiving the Process Message Received Event.
I hope my explanation is understandable.