• Post Reply Bookmark Topic Watch Topic
  • New Topic

memory management when using 2D API

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
iam using a plugin for 2D API.when ever ii load the page that contains 2D Graphics my memory is increasing to
+10MB.i.e is nearly the size of the plugin.and more over when ever i refresh the page that contains 2D Graphics again my memory is increasing to +10 MB again.
iam using System.gc() to collect the garbage.but whenever i refresh the page or when ever i load the 2D Graphics page the memory is increasing enormously..
PLease help in this issue,

Thanks and regards
ravi
 
Nura Horne
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like a new instance of the graphics object is being created each repaint, possibly more than one as 10mb is large. Post some code so we can have a look.
Rgds,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!