I am not very familiar with the winedbg code and do not see any easy (ie, non-hackish) way to get the length of the string in order to properly allocate the name size.  I could read back a "large buffer" and use the string resulting from that to determine how large of a name to allocate, but that seems slightly hackish.  If you have a suggestion then I'm all ears.
<br><br>Erich Hoover<br><a href="mailto:ehoover@mines.edu">ehoover@mines.edu</a><br><br><div><span class="gmail_quote">On 3/11/07, <b class="gmail_sendername">Eric Pouech</b> &lt;<a href="mailto:eric.pouech@wanadoo.fr">eric.pouech@wanadoo.fr
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Erich Hoover a �crit :<br>&gt; Real Name:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Erich Hoover<br>
&gt; Description:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The thread name length in winedbg is currently restricted to 9<br>&gt; characters, this is not nearly long enough for debugging threads in<br>&gt; the Supreme Commander demo and results in character corruption on the
<br>&gt; terminal.&nbsp;&nbsp;Since this particular application names one of the threads<br>&gt; with the map path (Map loader /maps/scmp_019/scmp_019.scmap), a<br>&gt; significant increase in the number of characters is necessary.&nbsp;&nbsp;This
<br>&gt; patch ups the allowed thread name length to 100 characters and<br>&gt; null-terminates the string in case an application exceeds that<br>&gt; threshold value.<br>&gt; Changelog:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; winedbg: Support longer thread names
<br>in that case, it would be better to dynamically allocate the string (and<br>to create it by default at 5 bytes for the %04x value)<br>furthermore, you need to change the comment in debugger.h in<br>THREADNAME_INFO structure about the name&#39;s length, as it seems VC7
<br>removed the restriction to 8 characters that existed in VC6<br>A+<br><br></blockquote></div><br>