<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff size=2>Hi 
Ariel,</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff size=2>Thanks 
very much for the PROBLEM-REPORT-FORM!</FONT></SPAN></DIV>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff size=2>If you 
can send a tested patch against the current SVN HEAD, I'll integrate it before 
ACE 5.6.</FONT></SPAN></DIV>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=403224215-20062007><FONT face=Arial color=#0000ff 
size=2>-Steve</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Steve Huston, Riverace Corporation<BR>Would you like ACE 
to run great on your platform?<BR>See <A 
href="http://www.riverace.com/sponsor.htm">http://www.riverace.com/sponsor.htm</A><BR></FONT></P>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  ace-bugs-bounces@cse.wustl.edu [mailto:ace-bugs-bounces@cse.wustl.edu] <B>On 
  Behalf Of </B>Ehrnberg Ariel<BR><B>Sent:</B> Wednesday, June 20, 2007 12:32 
  PM<BR><B>To:</B> ace-bugs@cs.wustl.edu<BR><B>Subject:</B> [ace-bugs] Setting 
  the stack size of thread has no effect underWINCE<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>ACE VERSION: 
  5.5</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>HOST MACHINE and 
  OPERATING SYSTEM:x86 Win2K</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>TARGET MACHINE and 
  OPERATING SYSTEM, if different from HOST: PPC 2003 - wince 4.2 
  </FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>COMPILER NAME AND 
  VERSION (AND PATCHLEVEL): vs 2005</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>CONTENTS OF 
  $ACE_ROOT/ace/config.h: </FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>#include 
  "ace/config-win32.h"</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>AREA/CLASS/EXAMPLE 
  AFFECTED: threads</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>DOES THE PROBLEM 
  AFFECT:</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>COMPILATION? 
  no</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>LINKING? 
  no</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>EXECUTION? yes 
  </FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>OTHER (please 
  specify)? N/A</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" 
  size=2>SYNOPSIS:</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>Setting the stack 
  size under WINCE has no effect.</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" 
  size=2>DESCRIPTION:</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>The CreateThread 
  function of wince accept stack size as the first argument. But this parameter 
  is ignored unless the flags parameter contains the flag 
  STACK_SIZE_PARAM_IS_A_RESERVATION.</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>The problem is 
  that the call CreateThread in ACE (inside ACE_BEGINTHREADEX) changes the flags 
  like this: (FLAGS) &amp; CREATE_SUSPENDED. And so the stack size has no 
  affect.</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>I think that the 
  motivation behind this was to disable other flags that WINCE does not accept 
  (it actually accept only those two parameters).</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>The solution is to 
  add the other flag to the mask.</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>REPEAT 
  BY:</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" 
  size=2>n/a</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" size=2>SAMPLE 
  FIX/WORKAROUND:</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face="Courier New" 
  size=2>n/a</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face=Arial size=2>Thanks,</FONT></SPAN></P>
  <P dir=ltr><SPAN lang=en-us><FONT face=Arial 
size=2>Ariel</FONT></SPAN></P><BR>
  <DIV><STRONG><FONT color=#00080 size="</FONT"></STRONG>&nbsp;</DIV>
  <DIV align=ft><STRONG><FONT color=#00080 size=This FONT < Ltd. Systems Elbit 
  by sent been has message e-mail></STRONG></DIV>
  <DIV align=ft><STRONG><FONT color=#00080 size=and only.<BR recipients intended 
  the of use for is>The message may contain&nbsp;privileged or 
  commercially&nbsp;sensitive information .<BR>If you are not the intended 
  recipient you are hereby notified that any use,<BR>distribution or copying of 
  this communication is strictly prohibited,<BR>and you are requested to delete 
  the e-mail and any attachments</FONT></STRONG></DIV>
  <DIV align=ft><STRONG><FONT color=#00080 size=and FONT the immediately.< 
  sender notify></STRONG></DIV></BLOCKQUOTE></FONT></FONT></FONT></BODY></HTML>