unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation

  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    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 02: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

  2. #2
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    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

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center