<div dir="ltr">Thanks for the answer, I will imitate in Toro the behavior of Win64. <div><br></div><div>Matias<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-01 20:49 GMT+01:00 Jonas Maebe <span dir="ltr"><<a href="mailto:jonas@freepascal.org" target="_blank">jonas@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/02/18 16:24, Matias Vara wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I partial answered my question by reading <a href="https://www.freepascal.org/docs-html/ref/refse114.html" rel="noreferrer" target="_blank">https://www.freepascal.org/doc<wbr>s-html/ref/refse114.html</a>. So I think _fpc_local_unwind() is used to call the finally section when "Exit" is executed in the "Try" section. It is not clear yet what the parameters "frame,target: Pointer" are meant to. I checked the code generated in Linux and is a bit different. It is base on the functions FPC_PUSHEXCEPTADDR and FPC_POPADDRSTACK, which It seems much more clear. Is it possible to generate a similar code in the case of Win64? In other words, is it possible to tell the compiler "generate the 'try-finally-end' block as in Linux"? I don't think so but It is worth to ask.<br>
</blockquote>
<br></span>
No, it is not possible. On Win64 the compiler and RTL use so-called structured exception handling (SEH), which is required to interoperate with code generated by other compilers. See <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms680657(v=vs.85).aspx" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-<wbr>us/library/windows/desktop/ms6<wbr>80657(v=vs.85).aspx</a> for more information.<br>
<br>
<br>
Jonas<br>
______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.or<wbr>g</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cg<wbr>i-bin/mailman/listinfo/fpc-pas<wbr>cal</a></blockquote></div><br></div>