Search the web
Sign In
New User? Sign Up
wtl · WTL support list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
CFileDialog crash on Vista   Message List  
Reply | Forward Message #16084 of 16191 |
Re: CFileDialog crash on Vista

My guess is it has something to with the Vista window renderer
(http://msdn.microsoft.com/en-us/library/aa969540(VS.85).aspx). It is far more
memory intensive. Normally you would not see an issue, but some boxes uses chip
sets that use main memory for video memory.

You could try turning of compositing, under the performance settings. Better yet
set the performance settings to "performance". Windows 7 has add some
performance increases in this area.

Might be worth a try.

--- In wtl@yahoogroups.com, "jochen.stier" <jochen.stier@...> wrote:
>
> Hi,
>
>
>
> I am having the oddest problem with wtl8 on Vista. Opening a file dialog
brings up a wait cursor and then my App hangs; no window appears. Of course this
runs fine under XP.
>
> CFileDialog lDialog(TRUE);
>
> lDialog.doModel();
>
> I am using Visual Studio 2005 and I have recently upgraded to wtl8 after I had
the same problem with wtl71. I have been googling the problem and it turns out
that the CFileDialog are handled differently under Vista, but I could not really
find a solution to the problem. Does anyone have a hunch what could cause this
problem? Do I need some special entry in stdafx.h or use a particular compiler
flag? This is what my stdafx.h looks like
>
>
> #define WINVER 0x0400
> #define _WIN32_WINNT 0x0500
> #define _WIN32_IE 0x0501
>
> #define _WTL_USE_CSTRING
> #define _ATL_APARTMENT_THREADED
>
> #include <atlbase.h>
> #include <atlapp.h>
>
> extern CAppModule _Module;
>
> #include <atlcom.h>
> #include <atlhost.h>
> #include <atlwin.h>
> #include <atlctl.h>
>
> …
>
> Cheers
>





Wed Jul 8, 2009 7:19 pm

mgrandau
Offline Offline
Send Email Send Email

Forward
Message #16084 of 16191 |
Expand Messages Author Sort by Date

Hi, I am having the oddest problem with wtl8 on Vista. Opening a file dialog brings up a wait cursor and then my App hangs; no window appears. Of course this...
jochen.stier
Offline Send Email
Jun 23, 2009
1:42 pm

... Just a guess, not much info to go on, but it's good practice to use ATL::CString instead of WTL::CString. So, change: #define _WTL_USE_CSTRING to #define...
domehead100
Offline Send Email
Jun 23, 2009
5:07 pm

I have tried changing to _WTL_NO_CSTRING but the problem still occurs. I did install VC 2005 on my vista machine and recompiled the app there, but the problem...
jochen.stier
Offline Send Email
Jun 28, 2009
12:36 am

Hi Jochen, I don't know what your problem comes from but I would be suprised it comes from the WTL, CString or Vista. I have several VC6 XP-compiled...
Yarp
yarp2002
Offline Send Email
Jun 29, 2009
8:16 am

I just wanted to follow up and report my findings. The problem is definitely not with wtl but has something to do with the new Open/Save dialogs in Vista and...
jochen.stier
Offline Send Email
Jul 8, 2009
4:02 am

My guess is it has something to with the Vista window renderer (http://msdn.microsoft.com/en-us/library/aa969540(VS.85).aspx). It is far more memory intensive....
Mark Grandau
mgrandau
Offline Send Email
Jul 10, 2009
12:57 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help