Ask a questionAsk a question
 

AnswerCanvas and memory

  • Saturday, July 04, 2009 7:38 AMCosmin_Rasina Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    I am using a canvas to add some UIElements to it(The canvas represents a report page).Every time I create a new page and add some controls to it the memory grows.I tried to call the GG.Collect method but it doesn't free the memory.

    My context is the following :I have a XpsDocumentWriter in which I put pages(every page is a canvas).

    Do you have any solutions to my problem?
     

Answers

  • Saturday, July 04, 2009 9:17 PMKenneth Haugland Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Cant you do this on one canvas, and draw rectangles for each page? It is hardly supprising that more controls increases the memory usage, with all the handles each control has.
    Kenneth

All Replies

  • Saturday, July 04, 2009 9:17 PMKenneth Haugland Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Cant you do this on one canvas, and draw rectangles for each page? It is hardly supprising that more controls increases the memory usage, with all the handles each control has.
    Kenneth