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
My Carrier: T-Mobile
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.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

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!
Please use plain text.
Developer
razorek
Posts: 65
Registered: ‎06-28-2012
My Device: BlackBerry Z10LE
My Carrier: T-Mobile

Re: Page not deleted on navigation back

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

Please use plain text.
Developer
dcharya
Posts: 74
Registered: ‎03-04-2012
My Device: developer
My Carrier: 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
Please use plain text.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ
Please use plain text.