App inventor started freezing from too much code

Start by telling about your project. Read the above topic on what kind of information you can provide.