I just checked this system (XP sp2 with IE6) and it works just as I
remember.  Ever "open in new window" results in one or more new threads.  I
didn't attach a debugger or other tools to verify or disprove the rest, I'll
leave that as an exercise for the reader. <grin>  But, your right about
Word.  Maybe it was an older version I'm thinking of, maybe I'm delusional.


I'm on semi-vacation at the moment, which is why I actually had time to dig
through accumulated emails and even take time to comment on one that caught
my eye.  But I lack motivation to go digging for document references for an
on-line debate that I can't easily create a search query to produce.  I can
only say that I've programmed for WinX for since Win16 and the very
beginnings of Win32 in the days of massive switch statements.  95%+ of that
work being in C++ including a fair bit of low level stuff.  Which of course
does not lend me any credibility, but is just a way of leading toward saying
that in that time I've worked on and observed programs from both MS and
others running more than one UI thread in a process.  There is nothing
magical about a "UI thread", it's just a thread using user32 services.  It
get's a message queue, and pumps messages, end of story.  If you don't buy
that, oh well...

Think of it this way.  It's no different than having any number of STA
threads in a given process with its own hidden window and message pumps
inside the channel or otherwise.  Is it your position that we can only have
on STA per process?  Or is it your position that the windows just can't be
visible?  <grin>

Anyway, have fun with your debate, I'm going to do other things besides sit
in front of a computer now that I got my computer "fix" for the day...

Russ

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie
Sent: Wednesday, July 19, 2006 12:51 PM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] UI Thread count per process restrictions [was
Re: VS2003 Debugging Issues with Multiple UI Threads]

On Wed, 19 Jul 2006 11:21:03 -0700, Russ Alan <[EMAIL PROTECTED]> wrote:

>You can definitely do it

Please supply the specific reference to Microsoft official development
documentation that states this (I don't put too much confidence on off-
hand, unofficial, remarks in chat transcripts).

>and it is not restricted in any way by the OS or most other platforms
>(excepting VB and the like).

... and doesn't restrict cross-threaded calls to SetWindowText or
SendMessage, which are documented as being wrong.  I think we can safely
agree that Windows not restricting you (as in send you an error) from doing
something does not necessarily correlate to doing something correctly.

>IE does it when you "open
>new window", Word does it per document IIRC, and there are other examples.

IE 6, on my systems, "open new window" runs in separate processes (there's
no setting for that anymore).  Both my versions of Word and Excel (2000,
2003) do not increase the number of threads it creates new document windows.

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to