http://bugs.winehq.org/show_bug.cgi?id=10467
--- Comment #7 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-18 13:16:34 --- That won't work. Wine does not grow stack. And does not use guard page.
When I did some testing on winnt+ the guard page was used only to grow stack. When the maximal stack size was reached (when it could not be grown anymore because of reserved space in the lover address space) windows allocated page with PAGE_NOACCESS. Exactly what Wine does now. Just allocating the maximum stack size instead.
So if what you saying is true the bug is in .net not Wine. However it would be nice for Wine to support growing stack.
What you did won't work for some programs that clear _whole stack space_ on exit. On windows they trigger stack growth. On Wine they just crash.