Here is its text:
The programs could be Firefox, Notepad, Google Chrome or anything else whichever is using the Open Common Dialog of Windows OS to open a file.
First, I searched on internet to find a solution to this problem but nothing was seeming to work for me. Only 1 solution, I think, should work was to fix the MRU (Most Recently Used) list of Open dialog by editing the registry. Because the problem could have been arose of a path in MRU which is missing on the hard disk. But everything was in Hex codes. So I cancelled to mess with the registry. Then I thought the error would not arise if a path is missing because I must have opened a document (using any app's Open command) from one location and deleted it and then used Open command again; and this wasn't causing any error.
Then I opened Notepad and clicked on the Open command the Notepad crashed and gave me 3 options :
- Check online for solution (I clicked it but no solution found which happens in most of case)
- Close the application (most of people would do this)
- Debug the application
I opened it to debug in Visual Studio 2008 and found that there is some problem with the comdlg32.dll file which is used by most of programs to show the Open Common Dialogbox to open files in them. So ultimately I concluded that the comdlg32.dll file must become corrupt. However there was no error occurring for the Save Common Dialogbox (I didn't checked other common dialogs: Color, Font and Print).
So, now I need to replace the corrupted comdlg32.dll with a fine version of it. The problem may get solved just by downloading that file from a DLL download website but it is risky. See here, how it could be risky.
So I opened the command prompt with Administrator rights and issued SFC /SCANNOW command. It checked for all system files and generated a log. I checked the log file and at the end of it, I found that SFC has considered the comdlg32.dll as corrupt.
At the end of the scan process, it showed a message that some files are corrupt but it can not replace them now, a system restart was needed. I restarted my computer and when it was shutting down, the comdlg32.dll file get replaced when the system was displaying message similar to "Please wait... Windows is installing updates.".
After the restart the Open command was working fine.