Out of Memory errors in Delphi 2.0

Question:
I am working on my first Delphi 2.0 application which has grown to be quite large over the past few months. The problem is that lately I have been getting “Out of Memory” errors whenever I run my application. Even the smallest of things will make this message come up. I then have to shut it down to restart again.To give some background, I have a datamodule form in which is contained all my TTable components. These components are active when the application starts. I suspect I have about 30 of them. I have already started setting their Active property to false and opening them only when needed thinking that this could be the cause of the problem. The problem still persists.

Also, in the options menu of my project, I auto-create quite a few form. Could this cause the problem.

Thanks for your help in advance.Pourang

Answer:
A lot of things can affect memory resources. So I can’t point to one particular thing. However, here’s some stuff that you should consider:

1) If you’ve got a lot components dropped onto your form, you’re asking for trouble because you use up stack space. Besides, if you’ve got an incredibly crowded form, you should rethink your interface design. It confuses users.

2) Make sure that you release resources such as data access components, files, etc., as soon as you’re done with them. Especially during testing when you’re doing continuous execution of your programs, releasing resources is vital.

3) If none of the above apply, it’s possible that you have an error in your VCL or one of your Delphi files has a memory leak due to some corruption. You might consider re-installing Delphi

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS