Re: CFileDialog crash on Vista

"Mark Grandau" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
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 [email protected], "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
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.