-
May 14th, 2010, 12:14 AM
#1
unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation
Hi all,
When i m trying to open CFileDialog my application becomes not responding and gives this error
unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation
and poiint out in Disassembly"75DD21DC push dword ptr [edi+0Ch]"
and in call stack "SECUR32! 685f21dc()"
i m using this code for CFileDialog
Code:
CFileDialog fDlg(FALSE, NULL,NULL, OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT,"Text Files (*.txt)|*.txt||");
if (fDlg.DoModal () == IDCANCEL)
return;
when execute DoModal() of CFileDialog,this problem occur.
please help me how can i resolve it.
thanks in advance.
Last edited by vjshankwar; May 14th, 2010 at 01:49 AM.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
May 14th, 2010, 05:57 AM
#2
Re: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation
If your app uses Unicode, then your filter string must be unicode.
To be safe (Unicode or not) use
Code:
_T("Text Files (*.txt)|*.txt||")
Hope that helps.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
May 14th, 2010, 07:23 AM
#3
Re: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation
SECUR32.DDL has nothing to do with the CFileDialog. And you are using the CFileDialog correctly, so my guess is that the problem is somewhere else in your program.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|