<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Il 27/12/2016 12:26, Chavoux Luyt via Lazarus ha scritto:<br>
</p>
<blockquote
cite="mid:CAPGeeiHC86kCuDSim-+BeKMqK8ESZJkg_xTcv0Hq+=dTv-4gqQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">Hi,</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I wrote a small program for Linux in a
previous version of Lazarus which compiled and ran without
problems before. I have now updated to fpc 3.0.0 and Lazarus
1.6 (backports version for Debian X86_64 Jessie). The code
still compiles perfectly (it had a number of warnings, but
these have now disappeared: e.g. unixfileutil.inc(6,51)
Warning: Symbol "UTF8ToSys" is deprecated: "Use the function
in LazUTF8 unit"), but it results in a runtime error </div>
<div class="gmail_extra">"Project birds raised exception class
'External: SIGFPE'.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"> At address 7FFFEF8FC57F"</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">when running the following code:</div>
<div class="gmail_extra">
<div class="gmail_extra">
<div class="gmail_extra">procedure
THoofVrm.OpenBtnClick(Sender: TObject);</div>
<div class="gmail_extra">begin</div>
<div class="gmail_extra"> OpenDlg.Execute;</div>
<div class="gmail_extra">end; </div>
<div class="gmail_extra"><br>
</div>
</div>
<div class="gmail_extra">What is wrong with my code (and how
should I change it)?</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I know that there has been a change
in FPC/Lazarus string implementation, but this is just a
standard Lazarus File Open dialog (TOpenDialog) and result
in the error before even allowing me to select the file to
open.<br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"> I am not using either UTF8ToSys or
even the unixfileutil unit AFAICT:<br>
</div>
<div class="gmail_extra">"uses</div>
<div class="gmail_extra">
<div class="gmail_extra">Classes, SysUtils, FileUtil,
LResources, Forms, Controls, Graphics, Dialogs,</div>
<div class="gmail_extra"> IpHtml, StdCtrls, ExtCtrls,
Buttons, ExtDlgs, AsyncProcess, Ipfilebroker,</div>
<div class="gmail_extra"> strutils, Soek;"</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Any pointers appreciated...</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Regards,</div>
<div class="gmail_extra">Chavoux</div>
</div>
</div>
</div>
<br>
</blockquote>
<br>
Just a wild guess. The villain might be some property (such as
FileName, Filter or InitialDir) that you did set up with old Lazarus
at design time and which isn't compatible with current version.
Revising the design time properties of your File Open Dialog with
Object Inspector should fix the issue.<br>
Giuliano<br>
<br>
<br>
</body>
</html>