Forum > General

IDE freezes on SelectDirectory

(1/5) > >>

Roman:
I created a program with:
 
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---SelectDirectory('Select folder','D:\',folderName);The compiled program works fine, but running it from IDE the IDE freezes. Is it a bug or I missed something?

I am using: Windows 10 home 22H2
Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64
installed from lazarus-2.2.4-fpc-3.2.2-win64.exe 

Handoko:
Maybe that caused by antivirus, try to disable your antivirus or Microsoft Defender to see what happens.

wp:
Use FPDebug rather than GDB ("Tools" > "Options" > "Debugger" > "Debugger Backend" > select "FpDebug internal Dwarf-Debugger" in the top comobox).

Martin_fr:
There was a very similar thread recently (with open file or open dir dialog / though I believe Win11).

It turned out to be a bug in the FpDebug in 2.2.4.

If you are affected by the same issue, then you have 2 options:

1) Use Lazarus 2.3 (git main branch)
2) Use the gdb based debugger (Tools > Options > Debugger > Debugger Backend)
   If using gdb, ensure not to use "Dwarf 3", instead use "Dwarf with sets"

Roman:
Thank you all. I have changed "Debugger Backend" from "FpDebug internal Dwarf-Debugger" to "GNU debugger" and it helped. It seems that SelectDirectory is now a bit slower than before, but it works.

Navigation

[0] Message Index

[#] Next page

Go to full version