3

I have a problem with contents on a form is not updated correct when running in 64-bit window like Windows Server 2003 or 2008. There is a short video that illustrate this at screencast.

When I resize the main window the content is not repainted. But if I change the small splitter it is repainted. And everything works perfect on a 32-bit Windows. I have not made any OnResize events for this.

Any ideas ?

EDIT: Yes, the executable is 32-bit. It is only the Windows OS that is 64-bit.

Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99

1 Answers1

8

This is caused by having to many nested controls/windows. The stack size of 64bit Windows is smaller than on 32bit. This gets even smaller if there are global WH_CALLWNDPROC hooks. The WM_SIZE message event handling gets a stack overflow which the Windows kernel eats. See here and a fix here. Also see here for the same problem.

PS: WinForms also suffer from the same problem.

Community
  • 1
  • 1
Lars Truijens
  • 42,837
  • 6
  • 126
  • 143