lshatok / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 0 forks source link

Mac examples exit with error code 255 #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
All examples have such OnClose event:

    OnClose():
        self.Destroy()
        cefpython.Shutdown()
        wx.GetApp().Exit()

I don't know any other way to exit wx app on mac. If Exit() call is removed 
then there is error: "Segmentation fault: 11".

Original issue reported on code.google.com by czarek.t...@gmail.com on 13 Jan 2015 at 2:20

GoogleCodeExporter commented 9 years ago
Calling wx.GetApp().ExitMainLoop() does not exit application.

Calling sys.exit(0) instead of Exit() causes "Segmentation fault: 11" as well.

Original comment by czarek.t...@gmail.com on 13 Jan 2015 at 2:25

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 14 Jan 2015 at 8:23

GoogleCodeExporter commented 9 years ago
See doc comments in cefsimple for shutdown logic on OS X: 
https://bitbucket.org/chromiumembedded/cef/src/75bb909731cc040d0a2051f0e53cd754e
54fdfe5/tests/cefsimple/cefsimple_mac.mm?at=master#cl-40

Original comment by czarek.t...@gmail.com on 16 Mar 2015 at 10:05