Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 27
Registered: ‎06-24-2013
My Device: Z10

SIGSEGV during call to Application.quit()



in my app I am using Application.setAutoExit(false) to be able to handle the exit myself. This is needed because I want to close a network connection gracefully before exiting.


My manualExit callback looks like this:


void ApplicationUI::onAppManualExit() {

 The m_uiRoot is a TabbedPane which is the root of my app. If i do not deleteLater() it here I will get many errors about leaking resources of that ui element.

Up to m_uiRoot->deleteLater() everything works as I expect it to work, however as soon as I call quit() on the app I get a nice segmentation fault:

SIGSEGV code=1 fltno=11 ip=79ad786a(/base/usr/lib/libbbcascades.so.1@_ZN2bb8cascades11Application9resetMenuEv+0xc1) mapaddr=001d786a. ref=00000008

 Could anyone shed some light on why I might receive this SIGSEGV?