Application freezes when open / save dialog in Windows 7

I have an application written by Delphi 7, and this application works fine in Windows XP.

Now I upgrade my computer to windows 7, and everything works fine with this application, except when I press a button that will launch TOpenDialog and TSaveDialog, then freezes.

Does everyone have problems using delphi 7 on Windows 7?

+4
source share
1 answer

Most likely, the reason is related to COM. The "Open / Save" dialog box must be started in the STA COM apartment, otherwise some shell extensions may be blocked.

If you have something in your application that initializes COM in a different mode for the main thread, many strange things can happen.

+5
source

Source: https://habr.com/ru/post/1345851/


All Articles