<div dir="ltr">Thank you all for the help!</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 17, 2016 at 10:51 AM Jonas Maebe <<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Luiz Gonzaga de Oliveira Neto wrote:<br class="gmail_msg">
> Would be it be better to try to compile this with the Turbo Pascal<br class="gmail_msg">
> compiler then? Or do you think it would be easier to try to remove the<br class="gmail_msg">
> lines with these codes and continue with FPC? My fear is that in some of<br class="gmail_msg">
> these modifications I change what the code was supposed to do.<br class="gmail_msg">
<br class="gmail_msg">
As the link that Bart posted explains<br class="gmail_msg">
(<a href="http://putka.upm.si/langref/turboPascal/0683.html" rel="noreferrer" class="gmail_msg" target="_blank">http://putka.upm.si/langref/turboPascal/0683.html</a> ), HeapError is a<br class="gmail_msg">
pointer to a function that would be called when you're out of memory.<br class="gmail_msg">
That happened quite regularly if all you had was 640KB, but it is<br class="gmail_msg">
extremely unlikely to happen if you are running that same program on the<br class="gmail_msg">
same inputs on a 32 or even 64 bit platform.<br class="gmail_msg">
<br class="gmail_msg">
If that would happen anyway, then by default FPC will terminate your<br class="gmail_msg">
program with a Run-time error 204. You can then still look at what the<br class="gmail_msg">
original program did if it ran out of memory and try to do the same in a<br class="gmail_msg">
more preventative way, if it did not simply use that HeapError function<br class="gmail_msg">
pointer to print a (more user-friendly) error message and terminate as well.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
Jonas<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" class="gmail_msg" target="_blank">fpc-pascal@lists.freepascal.org</a><br class="gmail_msg">
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br class="gmail_msg">
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><span>------  Luiz G. de Oliveira Neto ------</span><br><span>------------ Unicamp - EC09 -----------</span><br></div></div>