Dephi

Please try to keep all the discussions in the main H&M forums on topic! If you have anything else you want to share, on any subject whatsoever, please post it here!

Moderator: Tim Green

John Smith
Posts: 338
Joined: Tue Sep 17, 2002 1:32 am
Location: Australia

Dephi

Unread post by John Smith »

Some of you may be interested in passing this on within your organisation

Our Technical guy spent 8 hours yesterday trying to work out why our software fell over. The reason happened to be an update patch from Borland. Some or Many may not see this as a bug, but it is something to be aware of -

We use Delphi 6 and applied the Update Pack 2 RTL 2

program Demo;
{$APPTYPE CONSOLE}
uses Variants, SysUtils;
var
v1, v2: Variant;
b: Byte;
begin
v1 := Unassigned;
b := 0;
v2 := b;
if (v1 = v2) then
writeln('This code was compiled with Delphi 6 Update Pack 2 RTL 2!')
else
writeln('This code was compiled with Delphi 6 without the update.');
end.


As you can gather you get different results when compiled with different versions.
Post Reply