delphi beginner
delphi beginner

Reputation: 41

Application hangs 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 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?

Upvotes: 4

Views: 3224

Answers (1)

Thorsten Engler
Thorsten Engler

Reputation: 2371

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.

Upvotes: 5

Related Questions