Seriously, keep us posted. If you do indeed find that some innocuous part of the framework is indeed pumping messages, unbeknownst to the community... well, that's invaluable information.
Some tips to investigate this: 1) See if you can get a stack trace from the exception, to pinpoint the source of the reentrancy -- it's unlikely to be managed code (eg: Application.DoEvents), more likely a call to MsgWaitForMultipleObjects down in some unmanaged code, somewhere. Perhaps an unmanaged debugger would help, if you have symbol info for all the modules involved... 2) Thread.Sleep can be an interesting tool. Assuming (hoping!) nothing in the HttpWebClientProtocol implementation pumps messages while awaiting a response, strategically place a few Sleep(1000) calls before and/or after your outbound web service calls. This would simulate the feel a slow, high-latency network connection -- making it easier, perhaps, to repro the bug. (Move the Sleep call around; if you find it's helping repro the problem, the message-pumping culprit is likely downstream of it somewhere.) HTH, -S On Wed, 21 Jul 2004 14:11:12 -0400, Snyder, Chris <[EMAIL PROTECTED]> wrote: >Will do. Thanks for all your assistance. > >-----Original Message----- >From: Unmoderated discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of Richard Blewett >Sent: Wednesday, July 21, 2004 2:19 PM >To: [EMAIL PROTECTED] >Subject: Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE] > >As you are already doing just start stripping out the complexity until the >problem goes away. Then try to build a simple app with a similar construct >that apparently caused the problem. > >That's normally a good approach to diagnosis - or at lease getting to a >point where you can post some code for others to look at > >Regards > >Richard Blewett - DevelopMentor >http://staff.develop.com/richardb/weblog > > >-----Original Message----- >From: Unmoderated discussion of advanced .NET topics. >[mailto:[EMAIL PROTECTED] On Behalf Of Snyder, Chris >Sent: 21 July 2004 18:04 >To: [EMAIL PROTECTED] >Subject: Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD >ATE] > >No, actually it's a little large and runs through some other goodness first >(like inherited forms). I'm going to try to duplicate the issue in another >application (which would make significantly more interesting to the >community as a whole) and repost. > >Thanks for the help, and if you guys have any other ideas (or things you >want me to try out as I'm trying to duplicate this) lemme know! > > > >-----Original Message----- >From: Unmoderated discussion of advanced .NET topics. >[mailto:[EMAIL PROTECTED] On Behalf Of Steve Johnson >Sent: Wednesday, July 21, 2004 12:13 PM >To: [EMAIL PROTECTED] >Subject: Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD >ATE] > >Snyder, Chris wrote: > >> If I understand your question correctly, it is declared as part >> of the form, and modified in the event handler. > >Yes, that's what I was asking. Is the event handler code sufficiently >compact that you can post the snippet? > >-- >Steve Johnson > >=================================== >This list is hosted by DevelopMentor(r) http://www.develop.com >Some .NET courses you may be interested in: > >NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles >http://www.develop.com/courses/gaspdotnetls > >View archives and manage your subscription(s) at http://discuss.develop.com > >=================================== >This list is hosted by DevelopMentor(r) http://www.develop.com >Some .NET courses you may be interested in: > >NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles >http://www.develop.com/courses/gaspdotnetls > >View archives and manage your subscription(s) at http://discuss.develop.com > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004 > > >=================================== >This list is hosted by DevelopMentor(r) http://www.develop.com >Some .NET courses you may be interested in: > >NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles >http://www.develop.com/courses/gaspdotnetls > >View archives and manage your subscription(s) at http://discuss.develop.com > >=================================== >This list is hosted by DevelopMentorŪ http://www.develop.com >Some .NET courses you may be interested in: > >NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles >http://www.develop.com/courses/gaspdotnetls > >View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com