<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="+1">Jonas - -O- option didn't do any different but I did
      bite the bullet and upgrade to 3.0 which does solve the problem.<br>
      Thanks.<br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 25/01/2017 6:54 AM, Jonas Maebe
      wrote:<br>
    </div>
    <blockquote
      cite="mid:c978aa22-ec22-ba07-e403-40c81e7437f4@freepascal.org"
      type="cite">On 23/01/17 10:17, Terry Mead wrote:
      <br>
      <blockquote type="cite">When compiled and run under Windows it
        generates the stack trace:
        <br>
        Runtime error 200 at $00401404
        <br>
          $00401404  TEST1,  line 6 of test.pas
        <br>
          $00401428  TEST2,  line 11 of test.pas
        <br>
          $00401451  main,  line 16 of test.pas
        <br>
          $004077D1
        <br>
        <br>
        Which is what you would expect.  When compiled and run on an ARM
        <br>
        processor under Linux (Debian Jessie) it generates the stack
        trace:
        <br>
        Runtime error 200 at $000101AC
        <br>
          $000101AC  TEST2,  line 11 of test.pas
        <br>
          $000101E0  main,  line 16 of test.pas
        <br>
          $00010118
        <br>
        <br>
        Ie. it does not contain the reference to the actual line which
        caused
        <br>
        the problem.  The first entry is to the return address of the
        faulting
        <br>
        procedure.
        <br>
        <br>
        The same compile options are used for both and include the -gl
        option.
        <br>
        FPC version is 2.6.4.
        <br>
      </blockquote>
      <br>
      Did you also compile both with -O-? That said, ARM is a lot better
      tested in FPC 3.0 than in 2.6.4, so you may want to try upgrading
      to that version in case -O- doesn't help.
      <br>
      <br>
      <br>
      Jonas
      <br>
      <br>
      _______________________________________________
      <br>
      fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
      <br>
      <br>
    </blockquote>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="https://www.avast.com/antivirus">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                This email has been checked for viruses by Avast antivirus software.
                                <br><a href="https://www.avast.com/antivirus">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>