VCL Icons are messed up on opening

Every time I start Delphi 4 (with update 1,2,or 3) the icons in my VCL are messed up (black or those from other componenets). If I deinstall and reinstall the packages they are go OK but next time I open it they mess up again. Any ideas how to solve this.

Who is Participating?
DrDelphiConnect With a Mentor Commented:
There is a bug in some video card drivers in the way they handle the ImageList API.  When an ImageList is being built in memory that cards will freeze the computer or corrupt the images when they have to swap the ImageList back out to main memory to complete the building on large imagelist's like the 180+ image component pallete list.  The S3 chipset has been particularly problematic (Win98 is even worse).  
Try these
1) Get the latest driver ( or your vendor if your vendors doesn't work, try the S3 as they tend to be more compliant)
2) Start Delphi with the -ns switch
3) Under the [display] section of the SYSTEM.INI file
add the following line
    BusThrottle=1 (reboot afterwards)
4) Reboot in safe mode and start Delphi.  Goto the properties of the component pallet and hide all the controls that you rarely use.  This will reduce the imagelist that is getting built and might get you under the threshold.
5) reduce the hardware acceleration for the card.
(display->properties->settings->advances->performance) 6) play with color depth/resolution  1024x768 in 16 bit color seems the worse (particularly with Delphi 3).
7) Get the latest DirectX drivers.
Also Delphi 5 can not run in Win98 under 16 color mode.  You must be at least at 256 colors.
PS.  If the BusThrottle works for you this is by far the
best solution.  All it does is instruct the driver that it must give a little time slice to the OS so affects on performance are not noticable (so far no one has reported back to me that they can even tell a difference between using and not using the BusThrottle setting except that Delphi runs).  Unfortunately not all drivers respect this setting.
mike_tippingAuthor Commented:
I've changed the card for another and my problem has gone away.

All Courses

From novice to tech pro — start learning today.