Can any one confirm this bug?

From: news.tiscali.dk (x_at_x.dk)
Date: 12/21/04


Date: Tue, 21 Dec 2004 13:34:17 +0100

When rasing an exception and catching it with 'on E: Exception' and the
re-rasing the exception 'raise E' Delphi gives an Access Violation. But when
re-rasing the Exception with only the 'raise' reserved word with out the 'E'
every thing is ok. Is the 'raise E' statement not legal to use?

procedure TForm1.Button1Click(Sender: TObject);
begin
  try
    raise Exception.Create('XXX');
  except
    on E: Exception do
      raise E; <--- Here comes the Access Violation! With out the 'E' every
thing is ok!
  end;
end;

/Brian


Quantcast