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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Super Contributor
JeffLemon
Posts: 391
Registered: ‎01-13-2011
My Carrier: NA

Delete a class?

My app has a number of classes, I define them for example:

 

Help *help = new Help();

 

What is the best way to delete the object created? I've tried delete but when I define the class again later in the app when it is needed again the memory usage goes up and up. It doesnt appear to get deleted.

 

I've seen that with a navigation pane you can delete a page on pop. But what about the class that holds the page?

 

I'm using C++.

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Please use plain text.