I have written some code in VB that verifies that a particular port in the Windows Firewall is open, and opens one otherwise.The code uses references to three COM DLLs.I wrote a WindowsFirewall class,
I\'m using Ninject to retrieve my DataContext from the kernel and I was wondering if Ninject automatically disposes the DataContext, or how he handles the dispose() behaviour. From own experiences I k
I have a client-server application, in which I use classic Sockets and threads for receiving/sending data and listening for clients.
My class is inherited from UnityContainer (from Unity 2.0), here is source code: public class UnityManager : UnityContainer
If I have the following code, I have no runtime or compilation problems: if (ConsoleAppBase.NORMAL_EXIT_CODE == code)
According to [http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx][1] you need to keep a reference to a System.Threading.Timer to prevent it from being disposed.
\"Collection was modified; enumeration operation may not execute.\" appears to be a common error with foreach loops, but I can\'t figure mine out. I have two classes of forms. One is begun on startup,
I have a Visual Studio 2008 C# .NET 2.0CF application. I\'m using a component base from which two concrete components are derived. The application first attempts to use SomeDisposableComponent. Its co
I am returning the variable I am creating in a using statement inside the using statement (sounds funny):
How can I ensure the following code is disposing of all objects in a better fashion? Currently, Code Analysis is telling me