开发者

DoModal() problem, Windows XP vs Windows 7

开发者 https://www.devze.com 2023-02-10 22:32 出处:网络
I have a desktop application which is has been running for over 10 years under Windows XP.The same .exe, when run under Windows 7,开发者_StackOverflow社区 dies when the DoModal() call is executed.Is t

I have a desktop application which is has been running for over 10 years under Windows XP. The same .exe, when run under Windows 7,开发者_StackOverflow社区 dies when the DoModal() call is executed. Is there something different in this call now is Windows 7? DoModal() never returns, so I can't test the return code.


It appears that this problem has not been answered for nearly two years.

I had the very same problem. I finally discovered that by reducing the Stack Reserve size and Stack Commit size settings in my project settings (linker:system) I was able to get doModal to work under windows-7.

My initial settings were 512 MB and 256 MB respectively. I reduced them to 64 MB and 32 MB and that made the app start working.

0

精彩评论

暂无评论...
验证码 换一张
取 消