07-08-2013 03:59 PM - edited 07-08-2013 04:30 PM
I'm trying to pop a screen by calling pop() on the NavigationPane which holds it. But it crashes, in fact it crashes when I try to access anything from the NavigationPane. Here is what I'm trying to do:
Application *a = Application::instance();
NavigationPane *nav = ((ApplicationUI*)a)->myNavPane;
The following code also crashes:
I have no idea what the problem is as the error message is not descriptive:
Process 44814560 (Test5) terminated SIGSEGV code=1 fltno=11 ip=7898293c(/base/usr/lib/libbbcascades.so.1@_ZN2b
Also, the following proves that my NavigationPane is not null:
qWarning() << "NavPane is NULL";
qWarning() << "NavPane is NOT NULL";
Any help would be great!!
07-08-2013 04:48 PM
Even though your NavPane may not be NULL, it might be pointing to some garbage memory location (ie: if it was destroyed).
Can you give a bit more insight as to how other controls are interacting with your navpane?
07-09-2013 09:33 AM
I decided to give this up and instead pass the NavigationPane pointer to my new screen's constructor, this allows me to push and pop with ease. Thanks anyway! Spent way too much time on this (almost 2 days) and we have a deadline to hit, this may not be the cleanest way but it works.
07-09-2013 11:28 AM
07-10-2013 06:28 AM