發問發問
 

已答覆Canvas and memory

  • Saturday, 4 July, 2009 7:38Cosmin_Rasina 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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?
     

解答

  • Saturday, 4 July, 2009 21:17Kenneth Haugland 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    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

所有回覆

  • Saturday, 4 July, 2009 21:17Kenneth Haugland 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    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