Application hangs when Open/Save dialog in windows 7

3.2k views Asked by At

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

Now i has upgrade my pc to windows 7 and everythings works fine with this application except when i click the button which will execute the TOpenDialog and TSaveDialog then hangs.

Anyone have this problems when using delphi 7 in windows 7?

1

There are 1 answers

5
Thorsten Engler On

Most likely reason is an issue with COM. The Open/Save dialog needs to run in an STA COM apartment otherwise some shell extensions can lock up.

If you have anything in your application which initializes COM in a different mode for the main thread, lots of strange things can happen.