I have developed an application using VC 7.1. In this application a call to CFileDialog::DoModal() causes the application to hang and never return. It happens on random machines. I have tested it on different machines and it doesn't hang on some of the machines but it hangs on others. After debugging I've found that the application hangs on a call to GetSaveFileName() function within the DoModal function. What is the reason for it and whats the work around? Thanks, Faisal