Re:Win32 API function failed on Win 9x
There is a limited number of "resources" available in Win9x, this limit is in now way related to
available memory, and is fairly low.
Each TWinControl subclass, TBitmap and other DC take up a resource. You can make unused bitmaps
release their DC (and free a resource) by invoking their "Dormant" method, for components, the only
way is to free/remove teh component.
Try to remove/release as many frames and TWinControl subclass components from your forms. Use TBevel
or TShape for cosmetics, make your own components, use grids/listviews to present data, avoid
TStaticText and ActiveX controls etc.
Be aware that some components can literally gobble up resources, the worst I've seen being the spin
button from RXLib (a minimum of 6 resources each...). Also, unlike what is written is the Delphi
documentation, TFrame does NOT reuse "resources", only the DFM data, and an empty frame accounts for
1 resource (like a TPanel), a frame with a single TEdit can account for 3 resources, etc.
Eric Grange