<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Has OpenDialog been created at this point? Better to double check by changing to<br></div><div><br></div><div>if Assigned(OpenDialog) then<br></div><div> OpenDialog.Execute<br></div><div>else<br></div><div> raise Exception.Create('OpenDialog not yet created');<br></div><div><br></div><div class="zmail_extra"><div id="1"><div><br></div><div>---- On Tue, 27 Dec 2016 16:00:19 -0500 <b>Giuliano Colla via Lazarus <lazarus@lists.lazarus-ide.org></b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><p>Il 27/12/2016 12:26, Chavoux Luyt via Lazarus ha scritto:<br></p><blockquote><div dir="ltr"><div>Hi,<br></div><div><br></div><div>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 <br></div><div>"Project birds raised exception class 'External: SIGFPE'.<br></div><div><br></div><div> At address 7FFFEF8FC57F"<br></div><div><br></div><div>when running the following code:<br></div><div><div><div>procedure THoofVrm.OpenBtnClick(Sender: TObject);<br></div><div>begin<br></div><div> OpenDlg.Execute;<br></div><div>end;<br></div><div><br></div></div><div>What is wrong with my code (and how should I change it)?<br></div><div><br></div><div>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><br></div><div> I am not using either UTF8ToSys or even the unixfileutil unit AFAICT:<br></div><div>"uses<br></div><div><div>Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,<br></div><div> IpHtml, StdCtrls, ExtCtrls, Buttons, ExtDlgs, AsyncProcess, Ipfilebroker,<br></div><div> strutils, Soek;"<br></div><div><br></div><div>Any pointers appreciated...<br></div><div><br></div><div>Regards,<br></div><div>Chavoux<br></div></div></div></div><div><br></div></blockquote><div><br></div><div>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></div><div> Giuliano<br></div><div> <br></div><div> <br></div><div> -- <br></div><div>_______________________________________________<br></div><div>Lazarus mailing list<br></div><div><a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br></div><div><a href="http://lists.lazarus-ide.org/listinfo/lazarus" target="_blank">http://lists.lazarus-ide.org/listinfo/lazarus</a><br></div></div></blockquote></div><div><br></div></div></body></html>