Consider the following program:

{$mode objfpc}

uses sysutils;

begin
  try
    try
      raise exception.create('test');
    except
      on e: exception do begin
        e.message := 'tset';
        raise e; // correct re-raise should only have raise; no exception
variable may present
      end;
    end;
  except
    writeln('oow');
  end;
end.

which is a wrong way to re-raise an exception. The program runs but after
the outer exception handler ('oow'), it ends with EAccessViolation. Is this
the intended behavior?



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/EAccessViolation-on-wrong-exception-re-raise-intended-behavior-tp5721532.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to