April 5th, 2010 11:21 PM
#1
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
April 6th, 2010 03:01 AM
#2
Re: CFile Dialog Crash on Window Server 2008.
The filter string must end with two '|'.
Not absolutely sure, but this can be the cause.
April 8th, 2010 01:49 AM
#3
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
April 8th, 2010 02:46 AM
#4
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
April 8th, 2010 03:02 AM
#5
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
April 8th, 2010 03:22 AM
#6
Re: CFile Dialog Crash on Window Server 2008.
Originally Posted by
vjshankwar
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
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks