473,378 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Call to SaveFileDialog on W2K Hungs app with FirstChanceException if debugged,,...

hi,

i have a situation here: i have a application with a form
on which you can click on a button and it will open
you a savedialog where you enter a path and save some
filestream context to a file on disk. The call to the ShowDialog
work on Windows XP and Vista seamless. But if called on
Windows 2000 the applications gui stops responding, but before
it, you can see the form losing its focus as it would be the normal
case while the save dialog opens. Here the apps stops responding
and ui is freezed. No SaveFileDialog, no Error Message. I made a
debugger attaching to it, that give me this callstack, but why does
it fail, i dont understand this here:

Stack Frames at EIP: 0x77E9BCB1 - PID: 1108 TID: 1288
0x77E9BCB1: KERNEL32.DLL:RaiseException + 0x0056
0x77D28324: RPCRT4.DLL!RpcRaiseException + 0x001D
0x77D86F9C: RPCRT4.DLL!NdrStubCall2 + 0x0B12
0x77D6998B: RPCRT4.DLL!NdrServerMarshall + 0x1812
0x7CFEE7C6: SHELL32.DLL!Ordinal172 + 0x0563
0x7CFEE83D: SHELL32.DLL!Ordinal172 + 0x05DA
0x7D03E57B: SHELL32.DLL!Ordinal690 + 0x36B4
0x7D03E67F: SHELL32.DLL!Ordinal690 + 0x37B8
0x76B04BDF: comdlg32.dll!PrintDlgA + 0x2825
0x76B06BAF: comdlg32.dll!GetOpenFileNameA + 0x0707
0x76B250F8: comdlg32.dll!PrintDlgExW + 0x68BC
0x77E2A454: USER32.DLL!SetWindowPlacement + 0x004E
0x76B0579C: comdlg32.dll!PrintDlgA + 0x33E2
0x76B0466D: comdlg32.dll!PrintDlgA + 0x22B3
0x77E2A454: USER32.DLL!SetWindowPlacement + 0x004E
0x77E18CD3: USER32.DLL!CharPrevW + 0x03F3
0x77E062FA: USER32.DLL!IsWindowVisible + 0x0595
0x77E19DA0: USER32.DLL!CharPrevW + 0x14C0
0x77E34300: USER32.DLL!CheckRadioButton + 0x0116
0x77E28D37: USER32.DLL!DialogBoxIndirectParamAorW + 0x0034
0x77E2ED7C: USER32.DLL!DialogBoxIndirectParamW + 0x0019
0x76B05324: comdlg32.dll!PrintDlgA + 0x2F6A
0x76B09841: comdlg32.dll!GetSaveFileNameA + 0x001C
0x76B0EDE3: comdlg32.dll!GetSaveFileNameW + 0x0048
0x008FA110:
0x7B2B899F:
0x7B2B899F:
0x7B232C2E:
0x7B232A33:
0x7B12BEEF:
0x7B062C9A:
0x7B062C9A:
0x7B07E4A0:
0x7B07E393:
0x7B06FD0D:
0x003120A4:
0x77E2A454: USER32.DLL!SetWindowPlacement + 0x004E
0x77E04605: USER32.DLL!TranslateMessageEx + 0x0605
0x77E0A7F2: USER32.DLL!DispatchMessageW + 0x000B
0x7B0835E5:
0x7B0835E5:
0x7B0831A5:
0x7B082FE3:
0x7B23B29C:
0x7B23AD73:
0x3000FF70: COREAPP~1.EXE!InitializeComponent + 0x053D
0x3000FF70: COREAPP~1.EXE!InitializeComponent + 0x053D
0x3000B7C1: COREAPP~1.EXE!PingRemoteHost + 0x0027
0x79E7C81E: MSCORWKS.DLL!LogHelp_TerminateOnAssert + 0x3506
0x79E7C783: MSCORWKS.DLL!LogHelp_TerminateOnAssert + 0x346B
0x79E7C90D: MSCORWKS.DLL!LogHelp_TerminateOnAssert + 0x35F5
0x79EEF830: MSCORWKS.DLL!GetCLRFunction + 0xC77C
0x79EF01DA: MSCORWKS.DLL!GetCLRFunction + 0xD126
0x79FB9793: MSCORWKS.DLL!_CorExeMain + 0x014C
0x79FB96DF: MSCORWKS.DLL!_CorExeMain + 0x0098
0x7900B1B3: MSCOREE.DLL!_CorExeMain + 0x0030
0x77E989D5: KERNEL32.DLL:ProcessIdToSessionId + 0x017D

I am a bit confused about the callstacks history by seeing calls like
"PrintDlgExW",
because i dont call them. So it seems its a internal flow of calls that the
savefiledialog
routes to the windows api native interface. Am i rigt or wrong by guessing
this? Why
does the SaveFIleDialog, even if its wrapped by managed code call this
function. I dont
see any sense for it,...Is this the same for a plain Windows API call? But
the main
question is: why does the ui hung here even if there ia a
kernel32:raiseexception. There
is no dialog or error displayed? why?

system is windows 2000 pro, target runtime is 2.0 .net, acces rights are
administrator
cheers
ken
Jun 27 '08 #1
0 1045

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael A. Covington | last post by:
I've just determined, by experimenting, that regardless of its Filter and DefaultExt properties, a SaveFileDialog will let you save the file with *any* registered extension. For instance, if you...
6
by: Ken Allen | last post by:
I have enocuntered something wierd. If I invoke an instance of the above dialog and elect to save the file in a directory where a file of that name does not exist, then the return is...
5
by: juli | last post by:
Hello dear fellows! Is there any chance that you know how can I upload a file with the saveFileDialog control to a specific folder-> I want any file uploaded to be save on specific folder with...
4
by: Manfred Braun | last post by:
Hi All ! I think, there is a bug in the System.Console class related to use the STDIO streams. I am doing a very simple thing in a console-based program named CS Console.In.Peek(); and...
2
by: ad | last post by:
Hi, I want to use saveFileDialog to save a file (like c:\aa.zip) to another place. How can I assgin c:\aa.zip to saveFileDialog
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
I want to create a class library project (dll) for use with a com app. The idea is to use .Net objects in com. I also want to include a SaveFileDialog in the class library. Is it possible to...
8
by: Joe Duchtel | last post by:
Hello - I have the following code to detemine a file name when my application is saving a file. The problem is that if the file already exists and I select the Yes button in the "Do you want to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.