• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©   Anjuta Software
I have a memory leak on Android when I remove the chart view. Am I missing something?
by Eugene at 26 May. 2015
  1. NChart3D FAQ
  2. Java API
  3. I have a memory leak on Android when I remove the chart view. Am I missing something?

You have to call cleanup method of the NChartView every time you deleting the view.

For example, you can have the following code in your activity:   

// Chart view
NChartView chartView;

@Override
public void onDestroy() {
    super.onDestroy();
    chartView.destroyDrawingCache();
    chartView.cleanup();
    chartView = null;
}

 

Was this article helpful?

Unfortunately, you can't vote for this article. Please log in to be able to vote.

0 out of 0 found this helpful


Comments


No comments yet.

Please log in to place a comment.