I'm building a large Lucene index and each document I insert requires a little bit of "putting together" before it can be inserted. I'm reading all of the documents from a database and inserting them into the index. Lucene allows you to build a few different indexes and merge them together later, so I've come up with this:
// we'll use ...
I noticed that you can change the target platform in .NET applications to the Client Profile or the Full profile. What is the difference between the two? How should I choose which is the correct one for my project?
...
I'm run into a really interesting .NET 4.0 installer issue. I have a small program that is targetting .NET 2.0. I'm running Win7 x64, which has .NET 3.5 pre-installed. After I install .NET 4.0, the program stops working. It's trying to use a function that was deprecated in .NET 4.0, but according to various articles I've read, the in...
I am updating an existing application that is installed via a Setup and Deployment Project.
The old application copied a config and a database file into the application's folder in Program Files during installation. This worked fine on Win 2000 and Win Xp (under a local admin account). In Windows 7, however, not only is this frowned u...
Wow...I've never seen this before. Any way to get around it?
foreach( double r in portfolioReturns)
{
if (-8.0 < r < -7.0)
{
n8++;
}}
...
Hi,
I am using the following code to update a record in my table:
var usr = test.Data.user.SingleOrDefault(y => y.id == 1);
usr.name = "test";
usr.Save();
retrieving the row works perfectly but when I Save() I get a NullReferenceException breaking in the file database.cs line 412, which...
I have a parent object called Page that has a List of objects called Control:public class Page{
List<CustomControl> controls {get;set;}
The CustomControl class has the following defintion:
public class CustomControl
{
string Name {get;set;}
string Value {get;set;}
}
Say for instance the Page class has two CustomControls A and B. Is i...
When you new an object in C# a few things must happen:
memory for the object is created, and whatever other book-keeping CLR whats to do
fields are initialized to default values
the constructor is invoked
Serialization frameworks seem to have some magical way to do 1 without doing 2 and 3. Or maybe it's not so magical after all. How ...
Hi,
I have a set of objects that I want to conform to an interface, say ISpecialObject.
However a part of my implementation I want to encapsulate the instantiation trigger of these specialobjects within the implementation of each ISpecialObject.
So say for instance I have as list of class types that implement ISpecialObject, I then wan...
Hi all,
I have an application which will be distributed to a large number of people within my company. I need to have some central data store for this application and dont have the budget for SQL server or anything like this. I noticed that there is a thing called a Local Database in VS2008... will this be suitable for a central data sto...
Hi everyone,
I'm an ASP.NET developer that has never done Winforms/WPF, but I need to create a calculator application that needs to run on ANY Windows platform since Winows XP.
The app will go out to a number of people and we have no idea what version of Windows they're running.
So my question is, what technology should I use to ensur...
(related to http://stackoverflow.com/questions/3049477/propertyinfo-setvalue-and-nulls)
If I have public class Thing { public int X; }, a Thing o, and a FieldInfo fi that points to the X field, why is it legal to call fi.SetValue(o, null)? The runtime sets the field X to zero, i.e. default(int) instead of complaining that a ValueType ca...
I’ve been tasked with a implementing a system for continuously receiving large amounts of data from a partner. The data schema on the partners’ side is different from ours, so some transformation has to take place when the data is received and imported into our database.
What’s the best approach to solve this task?
I have some control ...
I have list of objects that contain information about which classes static EventHandler should be listen to whitch folder. I know this doesn't work but you'll get the idea..
(eventhandler doesn't have to be static, class can also be a singleton, but somehow I have to add an EventHandler based on the type specified)
foreach (Service s i...
What is the best method to create branded verion for .net windows application.
...
There is a window application written in .NET (C#)
It is running perfectly in all Windows Operating System, except in a Windows7 machine.
In that operating system, image positions are changed to an extent messing up applications look and feel.
Why would this be happening and what is the solution?
...
As the title says, does anyone know of any Distributed Key/Value Stores that can run on Windows, and have .Net clients?
Thank you
Update: Sorry, forgot to add that it needs to be persisted.
...
I understand that using Perfmon.msc you can create a custom performance counter and by using counter log, you can write the counter value to a text file.
I also understand I can also use this programatically by creating a performance counter by using System.Diagnostics.PerformanceCounter, and get the counter value using NextValue() meth...
I am in the process of developing an application which uses a legacy USB driver. For some reason the developers of the legacy USB driver decided to write information to the registry and this process requires me to have administrative privileges for my application.
Now, the USB functionality that uses the registry should be only done by...
Hi,
Does anyone know what the performance difference is between
Java NIO vs DotNet IO performance.
Reading this question, it seems that standard Java-IO and DotNet-IO have
very similar IO performance.
What is interesting to me is that the Java guys state that mass file copying, file server based operations...etc should be a lot quic...