Hi,
I am creating my controls(aprox. 1000 controls) in the application dynamically, with the 'new' operator when the form is created. I'm having some arrays of pointers for the instances, and some other structures.
The problem is that when I am running the application, it takes 20 seconds till it is all loaded and shown to the user. I am guessing it because of the 1000 'new' I'm doing.
While being loaded, the form has to create all the instances, etc'.
I tried to make it with a thread, and it helped a bit, but still slow. Any ideas what is done usually to solve this?
Thanks. I appreciate your answer.
zvikorn
I am creating my controls(aprox. 1000 controls) in the application dynamically, with the 'new' operator when the form is created. I'm having some arrays of pointers for the instances, and some other structures.
The problem is that when I am running the application, it takes 20 seconds till it is all loaded and shown to the user. I am guessing it because of the 1000 'new' I'm doing.
While being loaded, the form has to create all the instances, etc'.
I tried to make it with a thread, and it helped a bit, but still slow. Any ideas what is done usually to solve this?
Thanks. I appreciate your answer.
zvikorn