473,381 Members | 1,629 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,381 software developers and data experts.

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


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
0x77E2A454: USER32.DLL!SetWindowPlacement + 0x004E
0x77E04605: USER32.DLL!TranslateMessageEx + 0x0605
0x77E0A7F2: USER32.DLL!DispatchMessageW + 0x000B
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
because i dont call them. So it seems its a internal flow of calls that the
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
Jun 27 '08 #1
0 1046

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

Similar topics

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...
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...
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...
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...
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
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: ...
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...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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$) { } ...
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
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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.