Archiv für Windows2000

Einträge im Fotoblog


When you are debugging an Application under Win2000 and you go into an OpenDialog a breakpoint will apear.
you can stop this by installing SP2 for Win2000 or installing a Breakpointfix.

You can get the Win2K-sp2 download off from the Microsoft downloads page (102mb).
You can get the Win2kdebugfix from Borland Codecentral by downloading upload IDs #16098 and #15804.

> I use Win 2000 and tried to install Delphi 5 enterprise
> but everytime I try to start Delphi, it hangs (without any
> error occuring). I tried to reinstall it for several times, but
> nothing worked so far
>
> Any ideas?

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 (www.s3.com 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 1024×768 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.

Jeff Overcash (TeamB)

> Hi.
>
> I know this is a bit general, but does anyone know of any problems
> that I might have moving my applications (Delphi Pro. 5) from Windows
> 98 to Windows 2000.
>
> Is it a matter of just trying it?
>
> I read somewhere that some components don’t work on Windows 2K due to
> some of the API calls?
>
> Thanks and Regards
>
> Andy

Hi Andy,

YES! There will be some points you should check:

1.) using Quickreport? Check out the temp-path! if it is too long you’ll get errors! You can fix it if you have the sources of QuickRep (see “reporting-charting” group)

2.) Win2000 fire “OnChange”-Events more often / earlier than WinNT4 / Win98. For example you will receive OnChange-Events of Combos or Edits while the creating-phase of the TForm… so check out, that you’ll handle them savely! Check for nil-pointers in TTree-Change-Events! Maybe add a simple bool like “bInit := TRUE” to the beginning of FormCreate and “bInit := FALSE” to the end – check for this in the change events.

3.) reading/writing registry? If so, check your users rights! maybe he hasn’t the rights to insert ODBC- or some other system-keys. You can run into problems if you just try to read it – if you have set the “CanCreate” option to TRUE!

cu

Boris