[fpc-pascal] catch segfaults

Xiangrong Fang xrfang at gmail.com
Thu Mar 14 01:48:32 CET 2013


The document said it is "deprecated"? Also, I want this to be cross
platform, not for unix only.  The use case is:

try
  buf := GetMemory(1024);
  size := 10240;
  stream.Read(buf^, size);
except
  ??
end;

2013/3/14 Ewald <ewald at yellowcouch.org>

> Once upon a time, Xiangrong Fang said:
> > Is it possible to use try...except to catch SIGSEGV?
> I don't know if it is possible, but how about using fpSignal()? See
> http://www.freepascal.org/docs-html/rtl/baseunix/fpsignal.html
>
> --
> Ewald
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130314/559d9153/attachment.html>


More information about the fpc-pascal mailing list