Check for definitions. For example if you defined forms in your code it will use a lot of ram because of starting same form a lot of times.
For example; I have 3 forms in my application. Form1, Form2 and Form3.
namespace RAMAPP
{
public partial class RAMAPP : Form
{
Form1 first = new Form1();
Form2 second = new Form2();
Form3 third = new Form3();
public RAMAPP()
{
InitializeComponent();
}
}
}
In here, when you click start button, program reads all lines you wrote now. And before starting, RAMAPP program defining Forms as first,second and third. The problem is to define these forms before the initializing.
You should delete all form definitions before the initializing.
After this, restart your program and it will be run hopefully :)