Mom always said to clean up after yourself, now I know she was right
Ok, I have been working on this NNTP Spider that goes out to a news server and sucks down the content from various defined newsgroups and sticks the content into a database so that it can be searched on. Well, the idea works all well and good, but the spider app seems to die within about 5-10 minutes of running. There is no error that is bubbled up. If I run within VS.NET, I just get an error and the app quits. There is no line that the app stops on with a message box or anything like that. Well, i decided to run this thing under Whidbey and try out some new features in Whidbey (expanded ThreadPool Threads and such). Well, lo and behold, while running under the debugger, I find that I was getting a socket exception error. I looked back through my code, and I found that I was not disconnecting from the news server. I now explicitly call the .Disconnect() method of the Smilla client, and bang everything seems to be working. I have been running now for about 20 minutes and I have not had a problem. I am keeping my finger's crossed and I hope that I won't have a problem any more in this area.
Mom was right. I never did a good job of cleaning up after myself. Now I know that I need to always check and make sure to clean up after myself better.