ACC2: Application Hangs Using COMMDLG.DLL (124903)
The information in this article applies to:
This article was previously published under Q124903 SYMPTOMS
Advanced: Requires expert coding, interoperability, and multiuser skills.
An application stops responding (hangs) when you try to close it after the
application displays the common Open File dialog box from COMMDLG.DLL. For
example, the AreTablesAttached() function in the Solutions sample
application (SOLUTION.MDB) exhibits this behavior if you click anywhere
outside the "Where is NWIND?" common dialog box and then try to quit the
Solutions sample application or Microsoft Access without first closing the
common dialog box.
CAUSE
This problem occurs when you fail to set the hWnd member of the
OpenFileName structure passed to the GetOpenFileName() function in
COMMDLG.DLL.
RESOLUTION
Make sure that the parent window's handle is passed in the hWnd member of
the OpenFileName structure. If the proper handle is passed in the
structure, the common dialog box will be opened as a modal dialog box and
users will not be able to close the parent window without first closing the
common dialog box.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access
version 2.0. This problem no longer occurs in Microsoft Access
version 7.0.
REFERENCES
"Microsoft Windows 3.1 Programmer's Reference," Volume 1, Chapter 4,
"Common Dialog Box Library"
Modification Type: | Major | Last Reviewed: | 11/6/2000 |
---|
Keywords: | kbbug kbusage KB124903 |
---|
|