Results 1 to 6 of 6

Thread: Memory increase, didn't free after close window

  1. #1
    Join Date
    Apr 2012
    Posts
    3

    Post Memory increase, didn't free after close window

    Hi, I create a solution and add txtextcontrol and show window. Memory increase but i close form contain txtextcontrol, memory not free. How can i free memory?

    Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    Bremen, Germany
    Posts
    5,914

    Re: Memory increase, didn't free after close window

    The memory will be freed by the .NET Garbage Collector and will not happen immediately in most cases.
    Do you instantiate the TextControl through code or did you add the TextControl to the Form in VS Design Time?
    Regards,
    Gunnar Giffey, TX Text Control
    [Forum Administrator]

  3. #3
    Join Date
    Apr 2012
    Posts
    3

    Re: Memory increase, didn't free after close window

    I add txTextControl in blank solution. In design and show it.
    This is video demo: http://screencast.com/t/Fe9Oc8Dk3oH
    This is solution: http://www.mediafire.com/download.php?ja85slj5c7e3d1j
    Please run solution and Show TextWindow about 20 times. And see memory in task manager. Close all TextWindow and show memory it not free

  4. #4
    Join Date
    Sep 2004
    Location
    Bremen, Germany
    Posts
    5,914

    Re: Memory increase, didn't free after close window

    Thanks for your files.
    TX Text Control .NET has not influence on the .NET memory management.
    Did you understand what I explained about the .NET Garbage Collector?
    Here is a link to a good article: http://www.simple-talk.com/dotnet/.n...ction-in-.net/
    Regards,
    Gunnar Giffey, TX Text Control
    [Forum Administrator]

  5. #5
    Join Date
    Apr 2012
    Posts
    3

    Re: Memory increase, didn't free after close window

    Thank for answer,
    I unserstand .NET Garbage Collector but please u see my solution and video. Can u make the memory free after close window in solution i send in last thread. Solution i just add 1 txtext control and show it.

  6. #6
    Join Date
    Sep 2004
    Location
    Bremen, Germany
    Posts
    5,914

    Re: Memory increase, didn't free after close window

    The memory will be freed automatically when the .NET Garbage Collector has been run.
    There is no way in TX Text Control to control the .NET Garbage Collector's behavior.
    Regards,
    Gunnar Giffey, TX Text Control
    [Forum Administrator]

Similar Threads

  1. How to close a thread?
    By CVT in forum TX Text Control ActiveX
    Replies: 6
    Last Post: August 17, 2007, 11:33:47
  2. Close a document
    By FSBarker in forum TX Text Control .NET for Windows Forms
    Replies: 1
    Last Post: August 14, 2006, 14:06:23
  3. External Buttons for Clip-Functions didnīt work
    By Unregistered in forum TX Text Control ActiveX
    Replies: 2
    Last Post: November 16, 2004, 09:33:12
  4. Close now...
    By samsmithnz in forum TX Text Control .NET for Windows Forms
    Replies: 11
    Last Post: September 22, 2004, 17:03:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •