I just wanted to test the "SelectDirectoryDialog" as described on the resource page: TSelectDirectoryDialog
, the linked doc page is currently down. But I'm getting an exception "External:SIGSEGV". Not sure what I'm doing wrong here. I put the "SelectDirectoryDialog" on the form and created a button that executes the following code:
procedure TForm1.Button1Click(Sender: TObject);
begin
if SelectDirectoryDialog1.Execute then ShowMessage(SelectDirectoryDialog1.FileName);
end;
I looked up a few examples (here, here and here), but I can't find anything that's wrong with my code. I tried the TOpenDialog
, that one works without a problem.
Any ideas how to fix this? Is there a different dialogue that let's me select a directory as a quick fix?
Update: The problem seems to be with the debugger, here's a thread describing it. Executing the Exe-File works fine. Does anyone know if the more current Version have a fix to this? (I'm using Lazarus V1.6 from 2016, FPC-V. 3.0.0, SVN-Revision 51630 - the 64bit Version).
InitialDir
set to? - MartynAView | Debug Windows | Call stack
should tell you exactly where the exception is occurring. - MartynA