Re: CFileDialog: "My Computer" not shows files and dirs

Tech-Archive recommends: Fix windows errors by optimizing your registry



See below...
On Wed, 23 Sep 2009 16:08:52 +0200, "Guido Franzke" <guidof73@xxxxxxxx> wrote:

Ok, after CString, I still have the problem on some computers, not on all.
I think, should be a Windows XP problem.

On the computer not showing the drives in "My Computer", I go to the
directory having jpg files. But they are not shown, even not when I use the
filter "All files *.*". But the directory before having documents, shows all
files correctly.

Now, I type a filename in my jpg-directory by hand (I cannot see the file
list, but I know the correct spelling of my file), and click "Open" in
CFileDialog, the dialog and the programm crashes!
****
OK, you used the nonsense phrase "crash" as if it has meaning. You did not say exactly
what the error was.

The most common cause of a failure on a return statement is either an access fault or an
invalid instruction exception caused by a stack clobber, caused by a memory overwrite.
There is a long-known bug with CFileDialog where code compiled with old libraries (say,
under VS6) erroneously assumes a size for the data structure on the stack, but when run in
Vista or XP, the data structure is actually longer and a memory overwrite occurs. Largely,
because people are migrating from VS6 and the older libraries, this has gone away, but it
could be your problem.

What was the call stack?

And can you run it under a debugger, instead of trying to work from a stack dump? And if
you say "But I don't have Visual Studio installed", I really don't care. You can install
WinDbg and copy your pdb file across to the target machine, and get real data. WinDbg
isn't nearly as nice as VS as a debugger, but it is free and easily installed.

Also, it doesn't hurt if you tell us that it occurs, say, only in the release mode and not
in debug mode. And it REALLY helps if you tell us what the service packs are on the
machines on which it fails, and which version of VS you are using. Someone might
recognize something about the bug.
joe
A dump file shows me in wincore.cpp the callback funtion AfxWndProc,
stopping when
return AfxCallWndProc(pWnd, hWnd, nMsg, wParam, lParam);
Unfortunately the dump does not show me the vlues of the variables.

Why does CFileDialog crash?
Guido

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Evil autorun CD - ideas ? downloadable exploits anywhere ?
    ... He would bake a stack of CD's and bring them to a conference. ... collected data to a temporary server that I will install on the network. ... This idea has one big risk - suppose someone takes the CD home. ... would be committing a criminal act if I exploited his home computer. ...
    (Pen-Test)
  • Re: SBMJOB #LIBRARY problem.
    ... You can install it on the machine that does not have a #LIBRARY. ... the library you specified omit the command. ... first entry in the call stack. ... the first entry in the call stack. ...
    (comp.sys.ibm.as400.misc)
  • Re: Yet Another Spinoza Challenge
    ... It's obviously a very, very sensible choice, but it is not the only ... Any searchable dynamic data structure will do. ... In what sense are you using the word "stack" in the above paragraph? ... The push operation ...
    (comp.lang.c)
  • Re: Is there a clean, simple way to do this stack change?
    ... doing that is for setting up a special data structure. ... and second cleanest ways I can see to do this use return stack ... Once everything is ready on the stack, ... word wraps it all up by moving everything above the left marker into ...
    (comp.lang.forth)
  • Re: Cisco VPN corrupts winsock
    ... > wireless card and using Device Manager to remove your NIC adapter. ... > XP should redetect it and reinstall it giving you your IP stack back. ... >> One of our users was told to install the Cisco VPN client. ...
    (microsoft.public.windowsxp.general)