Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Shawn A. Van Ness
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 sourc

[ADVANCED-DOTNET] Implement common edit menu commands in C#

2004-07-21 Thread Steve Dussinger
I'm trying to build an application in which I need to place a common Edit menu (containing the expected Copy/Cut/Paste commands) I am having difficulty figuring out how to make these functions work. The problem I ran into is this: I have a listview control in which I have the label editing enabl

Re: [ADVANCED-DOTNET] Multithreaded hash table access

2004-07-21 Thread Paul van Brenk
Or offcourse [C#] public static Hashtable Synchronized( Hashtable table ); Remarks A Hashtable can support one writer and multiple readers concurrently. To support multiple writers, all operations must be done through this wrapper only. Enumerating through a collection is intrinsically not a

Re: [ADVANCED-DOTNET] Missing callbacks from async sockets?

2004-07-21 Thread John Davis
Just realized I misunderstood the original post. Yep, sounds like a virus or something. I've never experienced your problem. John Davis <[EMAIL PROTECTED]> wrote:Recently finished writing an eventing server using async sockets. All I can say is that the performance is nothing less than amazin

Re: [ADVANCED-DOTNET] Multithreaded hash table access

2004-07-21 Thread Steve Johnson
James Berry wrote: > I'm sure there must be a really elegant way to do this. Any hints? Yep. Look at System.Threading.ReaderWriterLock. -- Steve Johnson === This list is hosted by DevelopMentorĀ® http://www.develop.com Some .NET courses you may be interested in

[ADVANCED-DOTNET] Multithreaded hash table access

2004-07-21 Thread James Berry
I've got myself very confused, and I wonder if you guys can help a little bit. In my data-layer, I'm trying to implement some caching for a long (well 2-3 seconds) running database operation. I know when the results would have changed, so when to re-run the stored proc. The stored proc takes som

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Snyder, Chris
Will do. Thanks for all your assistance. -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[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 servi

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Richard Blewett
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 o

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Snyder, Chris
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

Re: [ADVANCED-DOTNET] very small hard drive ( currently )

2004-07-21 Thread Richard Blewett
Just to clarify unless you were laughing that the moderators weren't doing a very good job for several months ... Steve is absolutely right - we took this list off moderated status months ago due to problems with the listserv software in moderated lists. In non-moderated lists the list can be conf

Re: [ADVANCED-DOTNET] very small hard drive ( currently )

2004-07-21 Thread Mike Andrews
LOL -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Steve Johnson Sent: Tuesday, July 20, 2004 1:17 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] very small hard drive ( currently ) Kamen Lilov wrote: > I thought A

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Steve Johnson
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 ===

[ADVANCED-DOTNET] Missing callbacks from async sockets?

2004-07-21 Thread John Davis
Recently finished writing an eventing server using async sockets. All I can say is that the performance is nothing less than amazing, it screams. These puppies so efficient, thanks to the io completion port support, that the performance bottleneck is the network interface itself. The NIC actu

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Snyder, Chris
If I understand your question correctly, it is declared as part of the form, and modified in the event handler. -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Steve Johnson Sent: Wednesday, July 21, 2004 12:00 PM To: [EMAIL

Re: [ADVANCED-DOTNET] Missing callbacks from asynchronous sockets?

2004-07-21 Thread John Davis
Recently finished writing an eventing server using async sockets. All I can say is that the performance is nothing less than amazing, it screams. These puppies so efficient, thanks to the io completion port support, that the performance bottleneck is the network interface itself. The NIC actu

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Steve Johnson
Snyder, Chris wrote: > So, in order to be more precise, one of the devs put code into > the event handler. The code increments a static count right before > the webmethod call and decrements it as soon as the web call > returns. If the counter is >1, he throws an exception. > Anyway, if the dev c

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem [UPD ATE]

2004-07-21 Thread Snyder, Chris
After some more debugging we found this problem in another area of the app. It's very similar: click on a tree item a business object gets updated. Occasionally, we get the same error (see below). So, in order to be more precise, one of the devs put code into the event handler. The code increme

Re: [ADVANCED-DOTNET] Threading, UI, and web service problem

2004-07-21 Thread Snyder, Chris
Thanks for the help so far. Here's my response: Correction: The 2nd combobox never gets updated. The exception is raised when the BO collection is being filled. 1)I know _I_ don't call DoEvents. We do use a 3rd party component, but that's a datagrid located somewhere else on the screen. It shou

Re: [ADVANCED-DOTNET] Missing callbacks from asynchronous sockets?

2004-07-21 Thread Manuel Costa
Hi, the only thing that i've seen similar to what you report had to do with Panda antivirus. When the connection was closed during a begin something, the callback was not invoked. Manuel - Original Message - From: "Garry Barclay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesd

[ADVANCED-DOTNET] Missing callbacks from asynchronous sockets?

2004-07-21 Thread Garry Barclay
It appears that we are NOT receiving the (completion port) callback from an asynchronous socket (BeginSend/EndSend) call. The sockets are clients and the failure seems to be related to shutdowns on the socket. This has the effect of leaving a pinned GCHandle on the heap (pinning the send buffer).