Recent

Author Topic: [SOLVED] Try...Except for external exception?  (Read 2047 times)

Warfley

  • Hero Member
  • *****
  • Posts: 1499
Re: [SOLVED] Try...Except for external exception?
« Reply #15 on: May 23, 2023, 12:20:31 pm »
I can't give you a more elaborate answer, but you could try to register a signal handler for all the signals and see if another signal is triggered.

See: https://www.freepascal.org/docs-html/rtl/baseunix/fpsignal.html

TRon

  • Hero Member
  • *****
  • Posts: 2503
Re: Try...Except for external exception?
« Reply #16 on: May 24, 2023, 05:56:51 am »
Thank you for the elaboration Warfley.

But this is usually not a problem in any real program, because some unit always includes sysutils or classes. It's just important to know for such minimal examples
Indeed. I simply never realized the influence of sysutils on the matter in the way you showed (appreciated).

When writing small shell tools I normally like to avoid sysutils like the plague because of the increase in size of the generated executable on/for certain platforms. That might perhaps need some (additional) reconsideration.

Warfley

  • Hero Member
  • *****
  • Posts: 1499
Re: [SOLVED] Try...Except for external exception?
« Reply #17 on: May 24, 2023, 10:46:29 am »
This initialization is probably the cause for the increased size (I guess the initialization of i18 is what's hitting hard here). So you can decide, all the pascal features or less space consumption

 

TinyPortal © 2005-2018