-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Life span handler. #18
Comments
It's already implemented: Line 115 in 3cf3ac1
|
I couldn't get the global one to work with do_close. That is why I used the above method. |
What was exactly your problem, was it not called? The code works the same, it doesn't make sense to me. |
I dont know if its a platform/implementation thing. I was receiving segfaults when using the global variable to run the cefsimple.
I'm now building other packages into it as well (hence the lm and ldl). These were not in it originally. |
Yeah, because this code is supposed to run with the main_linux.cc and main_win.cc examples which set the g_life_span_handler global variable. |
Yeah. I thought there might be some MT or MP issues with the way CEF works (not sure if that is a problem with global handlers on the main proc). Thanks anyway for the hard work - its working wonderfully well. I'll share a github repo once I get the thing stable. Its a little like NodeJS, but with a luajit backend instead (mainly so I can run torch and and some other luajit based tools with it). |
Sure, feel free to share your code. |
Well. I got it working, but it turns out its CEF itself. And Ive already spent 4 weeks trying to get CEF to work as needed, so Im moving to a different web engine. Webkit, khtml and Gecko (Goanno) are now something Im going to try out instead. |
This was quite a while ago. I ended up trying webkit here: |
I really dont know if people are using this. But heres how you register the missing life_span handler.
I added a g_exit method in the initialise on do_close and now the application cleanly exits.
Hope this helps.
The text was updated successfully, but these errors were encountered: