I am developing a program in delphi to exchange messages between users. This program will be a kind of controller program which is going to be installed in a server computer in order to receive and to send messages for many users. This program will deal with many requests and responses and it will hold all the users in computer memory. I decided to use TList in order to hold information about users in memory. As I’m using Tlist and it uses Pointers, I am manipulating heap memory, ok. The problem is that I made a test holding 1000 users in heap memory and it warned me saying “insufficient Space memory”. I intended that this program would be able to deal with more than 1000 users, much more. the program got slow as well.
I would like some suggestion on the best way to tackle this problem.
I was thinking in allocating a great quantity of memory when compiling the program, like a super array, and no longer using heap memory.
I don’t know if a big array is a good idea. If it is then I would like to know how to do it. I don’t know how to deal the maximum of computer memory.
I don’t know if I was able to communicate my doubt. I’m sorry I strained writing it because my language isn’t English.
I would like some suggestion on the best way to tackle this problem.
I was thinking in allocating a great quantity of memory when compiling the program, like a super array, and no longer using heap memory.
I don’t know if a big array is a good idea. If it is then I would like to know how to do it. I don’t know how to deal the maximum of computer memory.
I don’t know if I was able to communicate my doubt. I’m sorry I strained writing it because my language isn’t English.