CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    CFile Dialog Crash on Window Server 2008.

    Hi all,

    i m open CFileDialog to browse file,

    in this manner " CFileDialog fileDlg(TRUE, NULL, NULL, OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_OVERWRITEPROMPT,_T("Text Files|*.txt|Excel Files|*.xls;*.xlsx|"));
    "

    some time it works but some times it become not responding and crash on Windows server 2008.

    please help me what can i do.

    thanks for help in advance.
    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
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: CFile Dialog Crash on Window Server 2008.

    The filter string must end with two '|'.
    Not absolutely sure, but this can be the cause.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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

    Re: CFile Dialog Crash on Window Server 2008.

    Now i m chk it with "||" end pipe.but still problem is exist.

    and diaplay these details in more info:

    Code:
    Problem signature:
      Problem Event Name:	APPCRASH
      Application Name:	Test.exe
      Application Version:	6.0.1.4
      Application Timestamp:	4bbd6e29
      Fault Module Name:	Secur32.dll
      Fault Module Version:	6.0.6001.18000
      Fault Module Timestamp:	4791a777
      Exception Code:	c0000005
      Exception Offset:	000021b3
      OS Version:	6.0.6001.2.1.0.274.10
      Locale ID:	1033
      Additional Information 1:	98e2
      Additional Information 2:	6076d0439494b3c22f752162dd29dcbf
      Additional Information 3:	4f76
      Additional Information 4:	e360291dec91efb6c8036cc8226e0089
    
    Read our privacy statement:
      http://go.microsoft.com/fwlink/?link...p;clcid=0x0409
    please help me.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  4. #4
    Join Date
    May 2006
    Location
    Dresden, Germany
    Posts
    458

    Re: CFile Dialog Crash on Window Server 2008.

    Hi,

    Sorry, that this message maybe is not so useful for you:

    I tried a call to

    Code:
    CFileDialog fileDlg(TRUE, NULL, NULL,
     OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_OVERWRITEPROMPT,
     _T("Text  Files|*.txt|Excel Files|*.xls;*.xlsx|"));
    on Windows Server 2008 and it did work!

    I have to add:

    There is no MSVC installed on this server. I compiled an exe on Win XP (using the ancient MSVC 6.0 since I do not have a newer version here at work) and did copy the debug and the release version to the server and started them there. Both worked.

    I was logged in on the server as an admin!

    With regards
    Programartist
    Last edited by ProgramArtist; April 8th, 2010 at 02:46 AM. Reason: typo

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

    Re: CFile Dialog Crash on Window Server 2008.

    Yes this is working but sometime its crashed,so i m asking question for that time.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CFile Dialog Crash on Window Server 2008.

    Quote Originally Posted by vjshankwar View Post
    i m open CFileDialog to browse file,

    in this manner " CFileDialog fileDlg(TRUE, NULL, NULL, OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_OVERWRITEPROMPT,_T("Text Files|*.txt|Excel Files|*.xls;*.xlsx|"));
    Could you show your exact code, not this kinda "manner"?
    And please show also a little more around your CFileDialog definition.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured