To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=80759
Issue #|80759
Summary|GetOpenFileName causes another application to crash
Component|framework
Version|OOo 2.2
Platform|PC
URL|
OS/Version|Windows XP
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P4
Subcomponent|code
Assigned to|tm
Reported by|austyn
------- Additional comments from [EMAIL PROTECTED] Thu Aug 16 22:06:57 +0000
2007 -------
I am debugging another application. When I have OOo installed, my application
crashes inside the MSWindows API GetOpenFileName(), when my mouse hovers over a
file or folder in the resulting dialog box. Oddly, it doesn't crash the first
time it reaches this code; i.e. the first time through, GetOpenFileName
successfully returns a filename; the second time through, it crashes when I
hover my mouse over a file or folder icon. When I uninstall OOo, my application
does not crash at this point. I am building my app with MSVC++ 6.0. I have
reproduced this issue with a clean install of WinXP Pro SP2, and also with WinXP
Pro SP2 that is completely current with all MS Updates.
Here is the relevant excerpt from my code (plain C), called in response to a
menuitem being clicked:
TCHAR szFileName[300];
TCHAR szFileTitle[300];
TCHAR desktop[_MAX_PATH];
OPENFILENAME fNameStruct;
szFileName[0] = '\0';
szFileTitle[0] = '\0';
fNameStruct.lStructSize = sizeof (OPENFILENAME);
fNameStruct.hwndOwner = hwnd;
fNameStruct.hInstance = 0;
(LPTSTR) fNameStruct.lpstrFilter = "Data Sets\0*.DAT\0\0";
fNameStruct.lpstrCustomFilter = NULL;
fNameStruct.nMaxCustFilter = 0;
fNameStruct.nFilterIndex = 0L;
fNameStruct.lpstrFile = szFileName;
fNameStruct.nMaxFile = 300;
fNameStruct.lpstrFileTitle = szFileTitle;
fNameStruct.nMaxFileTitle = 300;
SHGetSpecialFolderPath(NULL, desktop, CSIDL_DESKTOPDIRECTORY, 0);
fNameStruct.lpstrInitialDir = desktop;
(LPTSTR) fNameStruct.lpstrTitle = "Open Data Set";
fNameStruct.Flags = OFN_HIDEREADONLY | OFN_FILEMUSTEXIST |
OFN_PATHMUSTEXIST;
fNameStruct.nFileOffset = 0;
fNameStruct.nFileExtension = 0;
(LPTSTR) fNameStruct.lpstrDefExt = "dat";
fNameStruct.lCustData = 0L;
fNameStruct.lpfnHook = NULL;
(LPTSTR) fNameStruct.lpTemplateName = NULL;
if (GetOpenFileName (&fNameStruct) != 0)
...
The error message I get is:
First-chance exception in MyApp.exe (SHELL32.DLL): 0xC0000005: Access Violation.
The program 'C:\PathToMyApp\WinDebug\MyApp.exe' has exited with code 0 (0x0).
Looking at the debugger output, the following DLLs seem to be the only
difference between the case where it crashes (OOo installed) and when it does
not (OOo not installed on the system):
Loaded 'C:\Program Files\OpenOffice.org 2.2\program\shlxthdl.dll', no matching
symbolic information found.
Loaded 'C:\Program Files\OpenOffice.org 2.2\program\uwinapi.dll', no matching
symbolic information found.
Loaded 'C:\Program Files\OpenOffice.org 2.2\program\msvcr71.dll', no matching
symbolic information found.
Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\GdiPlus.dll',
no matching symbolic information found.
Loaded 'C:\Program Files\OpenOffice.org 2.2\program\stlport_vc7145.dll', no
matching symbolic information found.
Loaded 'C:\Program Files\OpenOffice.org 2.2\program\msvcp71.dll', no matching
symbolic information found.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]