cannot (9,096)


How do I delete a file which is locked by another process in C#?

How do I delete a file which is locked by another process in C#?

I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file(perhaps by tracking the handles, althoug…


.net - Do sealed classes really offer performance Benefits?

I have come across a lot of optimization tips which say that you should mark your classes as sealed to get extra performance benefits. I ran some tests to check the performance differential and found…


Global Exception Handling for winforms control

When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hos…


What's the best setup for Mono development on Windows?

I started trying to play with Mono, mostly for fun at the moment. I first tried to use the Visual Studio plugin that will convert a csproj into a makefile, but there seemed to be no version availabl…


Backup SQL Schema Only?

I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this? EDIT: I'm trying to create a backup file to use with old…


SVN merge merged extra stuff

I just did a merge using something like: svn merge-r 67212:67213 https://my.svn.repository/trunk.I only had 2 files, one of which is a simple ChangeLog. Rather than just merging my ChangeLog cha…


SQL Server 2005 and 2008 on same developer machine?

Has anyone tried installing SQL Server 2008 Developer on a machine that already has 2005 Developer installed? I am unsure if I should do this, and I need to keep 2005 on this machine for the foreseea…



How can I Java webstart multiple, dependent, native libraries?

Example: I have two shared objects(same should apply to.dlls). The first shared object is from a third-party library, we'll call it libA.so. I have wrapped some of this with JNI and created my own…


c# - Why does a bad password cause “Padding is invalid and cannot be removed”?

I needed some simple string encryption, so I wrote the following code(with a great deal of "inspiration" from here):// create and initialize a crypto algorithm private static SymmetricAlgori…


Convert a string to an enum in C#

What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value(which wil…




not the error how find file from for type with