Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-24 Thread OBones
Jonas Maebe wrote: OBones wrote on Wed, 16 May 2012: Using FPC, I'm writing a DLL that exports functions used by a given host process. In order to protect the host process, it is mandatory that all exceptions are trapped in the exported function You are probably running into http://bugs.fr

Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread Sven Barth
Am 16.05.2012 13:35, schrieb michael.vancann...@wisa.be: On Wed, 16 May 2012, Jonas Maebe wrote: OBones wrote on Wed, 16 May 2012: Using FPC, I'm writing a DLL that exports functions used by a given host process. In order to protect the host process, it is mandatory that all exceptions are

Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread Jonas Maebe
t.wieckowski wrote on Wed, 16 May 2012: If I could just interject, How to build fpc with -dTEST_WIN64_SEH ? I've fpc/lazarus daily snapshoot, does -dTEST_WIN64_SEH in "project options"->"compiler options"->"other" will be enough for SEH support ? No. The compiler itself has to be recompiled w

Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread t . wieckowski
If I could just interject, How to build fpc with -dTEST_WIN64_SEH ? I've fpc/lazarus daily snapshoot, does -dTEST_WIN64_SEH in "project options"->"compiler options"->"other" will be enough for SEH support ? best regards tomek ___ fpc-pascal maillist -

Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread michael . vancanneyt
On Wed, 16 May 2012, Jonas Maebe wrote: OBones wrote on Wed, 16 May 2012: Using FPC, I'm writing a DLL that exports functions used by a given host process. In order to protect the host process, it is mandatory that all exceptions are trapped in the exported function You are probably runn

Re: [fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread Jonas Maebe
OBones wrote on Wed, 16 May 2012: Using FPC, I'm writing a DLL that exports functions used by a given host process. In order to protect the host process, it is mandatory that all exceptions are trapped in the exported function You are probably running into http://bugs.freepascal.org/view.p

[fpc-pascal] Catching math exceptions in a DLL

2012-05-16 Thread OBones
Hello all, Using FPC, I'm writing a DLL that exports functions used by a given host process. In order to protect the host process, it is mandatory that all exceptions are trapped in the exported function and in order to achieve that, I have the following construct in all exported functions: