Re:Win32 Api function failed
"A. Akchich" <akch...@sir.dgg.minvenw.nl> skrev i melding
news:902o28$7f41@vnw002.minvenw.nl...
Quote
> Hi all,
> I am getting the windows error message "Win32 Api function failed"
when i
> put too many Combobox objects in my program. Is there a limit to how
many
> Combobox objects i can use?
> I am using Delphi5 (build 6.18) on windows98 (build 4.10.2222 A)
Yes and no. No specific limit, but Comboboxes use quite a lot of GDI
resources. Start your Resource meter (rsrcmtr.exe in Win directory or
Programs | Accessories | System Tools menu), and check what level you're
at on GDI (not 100% sure whether this, or System- or User resources is
the most crucial). To my experience, any value below 50% is potentially
hazardous. Delphi itself uses quite a bit of resources, so one may
easily be short on those when running from IDE.
Concider using other kinds of controls. I know there are Combobox
replacements out there made for Delphi that use almost no resources.
Check out Delphi Super pages or www.torry.ru for a start.
--
Bjoerge Saether
Consultant / Developer
Asker, Norway
bsaether.removet...@online.no (remove the obvious)