User Profile

Collapse

Profile Sidebar

Collapse
ania1984
ania1984
Last Activity: May 6 '08, 10:44 AM
Joined: Jan 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ania1984
    started a topic C# Disposing panels
    in .NET

    C# Disposing panels

    Hello,

    I'm writing a program in c#, in which I create a flowlayoutpanel that contains a lot of panels. I have a button, and when the user clicks on it, I want to dispose the panels that I've created.
    This is the code:

    Code:
    foreach (Control c in myFlowLayoutPanel.Controls)
    {
        ((Panel)c).Dispose();
    }
    But looking at the Task Manager, I see that the memory usage doesn't decrease....
    See more | Go to post

  • ania1984
    started a topic Problems scaling flowLayoutPanels
    in .NET

    Problems scaling flowLayoutPanels

    Hello,

    I have a form with several controls and one panel (C#). Inside this panel, I create two FloyLayOutPanel s. In execution time, I add a lot of panels to each of the flowLayoutPanel s.
    I have a button to do zooms into the flowlayoutpanel s of the main panel. If the user clicks the button, the next code is executed:

    flowLayoutPanel LineA.Scale(new SizeF(2, 1));
    flowLayoutPanel LineB.Scale(new SizeF(2, 1));...
    See more | Go to post

  • ania1984
    replied to Threads and OutOfMemoryException
    in .NET
    I have just read it, but it doesn't say anything about problems with memory...
    See more | Go to post

    Leave a comment:


  • ania1984
    started a topic Threads and OutOfMemoryException
    in .NET

    Threads and OutOfMemoryException

    Hi

    I'm doing a program in c#.
    This is part of my code:

    Thread t = new Thread(doSmthg) ;
    t.Start();

    doSmthg();
    t.Join();
    ...

    The problem is that after executing this part of the code, the main thread executes another function and I get an OutOfMemoryExce ption at this line:
    Graphics g...
    See more | Go to post
No activity results to display
Show More
Working...