Welcome!

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

Reply
Developer
razorek
Posts: 65
Registered: ‎06-28-2012
My Device: BlackBerry Z10LE
Accepted Solution

Page not deleted on navigation back

Hi,

 

I have a two-page application. The second page has a QTimer set up in QML. When I navigate back from the page I'm still receiving signals from that QTimer in my QML/Javascript handler.

 

Why is that hapening? Shouldn't the page (with all attached objects, handlers, etc.) get deleted when the back button was pressed?

 

I would love to have a clarification on this issue. I don't want to have a memory leak of some sort in this or any future appications.

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Page not deleted on navigation back

You should read the section entitled "Removed popAndDelete function from NavigationPane" on this page: https://developer.blackberry.com/cascades/documentation/dev/upgrading/navigationchanges.html

I expect it's documented elsewhere as well, but that one makes it clear that your popped pages are not being deleted implicitly...

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
razorek
Posts: 65
Registered: ‎06-28-2012
My Device: BlackBerry Z10LE

Re: Page not deleted on navigation back

Thank you Peter! That was a quick answer :smileyhappy:. I've missed that information.

Developer
dcharya
Posts: 74
Registered: ‎03-04-2012
My Device: developer

Re: Page not deleted on navigation back

hello Peter

 

page doesnot exist anymore that u shared https://developer.blackberry.com/cascades/documentation/dev/upgrading/navigationchanges.html

Deepak Charya
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ