Recent

Author Topic: How handle hardware exceptions?  (Read 1951 times)

Borneq

  • Full Member
  • ***
  • Posts: 144
How handle hardware exceptions?
« on: December 15, 2012, 03:23:27 pm »
I analyze FreePascal exceptions handling. To study it, I wrote units with functions fpc_NNN and not use try-except-finally. It catches raised software exceptions. But I want also to catch hardware exceptions. In procedure Exe_entry is install_exception_handlers. It install syswin32_i386_exception_handler by SetUnhandledExceptionFilter.
But is problem: function (in system.pp) syswin32_i386_exception_handler compares: "if excep^.ContextRecord^.SegSs = _SS then".  _SS is stack segment of program, but in ContextRecord^.SegSs is strange value.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5790
    • wiki
Re: How handle hardware exceptions?
« Reply #1 on: December 15, 2012, 03:52:48 pm »
you better subscribe to the fpc mailing-list, and ask there. You are more likely to get a response there.

http://www.freepascal.org/maillist.var