Re: Delphi application & windows resources
From: Michael Baytalsky (mike_at_retaildecision.com)
Date: 10/22/03
- Next message: Roberto Vullo: "Re: setting privileges for ClipCursor"
- Previous message: Marc Rohloff: "Re: How to open a file in an active application by duble-clicking on the file name"
- In reply to: Kurt Barthelmess: "Re: Delphi application & windows resources"
- Next in thread: Andrew Jameson: "Re: Delphi application & windows resources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Oct 2003 15:28:06 -0400
> It isn't necessarily the component - it can be the number of them.
Very true. My DataModule containing obviously no windowed components
at all consumes about 50% of all the resources consumed by application.
This is because I use persistent fields and they're numerous.
You can try to avoid using them, but it's not always easy.
You can try to split a large data module into several small ones and create
them as they needed. What I personally had to resort to is destroying
inactive/invisible screens (my application looks like Outlook, rather then
typical MDI) and then recreating them (restoring exact position and all)
when use revisits them later. This allowed me to control the amount of
resources required.
One more thing: if you have a combobox somewhere, that lists fonts or
something like that, try to avoid having it filled all the time - threre
could be a
lot of fonts installed and each combobox item consumes resources.
Sincerely,
Michael
- Next message: Roberto Vullo: "Re: setting privileges for ClipCursor"
- Previous message: Marc Rohloff: "Re: How to open a file in an active application by duble-clicking on the file name"
- In reply to: Kurt Barthelmess: "Re: Delphi application & windows resources"
- Next in thread: Andrew Jameson: "Re: Delphi application & windows resources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|