Seems like NUMA is promising for parallel programming, and if I am not wrong the current latest cpus have built-in support for it, like the i7.
Do you anticipate the CLR to adapt NUMA soon?
EDIT: By this I mean having support for it, and taking advantage of it.
...
I have a library I'm writing unit tests for. The library is used by two applications: one a Windows service, the other a command-line application that does some registry read-writes. Each has a slightly different App.config file that is loaded from the library at start-up. For example:
public RetentionService()
{
Setting...
We have a system at my work that is basically a message-driven state machine. It takes in a variety of types of messages, looks up some context/state based on the message, then decides what to do, based on the message and the current state. Normally the result is a message being sent out of the system.
Are there any good open-source f...
We have a .net remoting application sitting in between web app and database. Occasionally we get strange problem. The remote call simply hangs and never returns. We used package sniffer to check the traffic. It seems to be the server side problem. If we stop the server app, a network exception will be thrown immediately. However when we ...
I want to be able to hide the header at the top of each grid column in a WPF ListView.
This is the XAML for my ListView:
<Window x:Class="ListViewTest.Test0.ListViewTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Empty ListView Grid" Heigh...
In .NET, what is the most reliable way to detect if an instance of the same program is already running? Further, what is the best way to pass command line arguments to the already-running instance (e.g. to open a specific document)?
...
I have a .NET WCF service that will need to handle multiple client requests at once.
The service makes database calls (both read and write) for each client request.
Could IO completion ports be useful for the database access portions of this code to improve concurrent performance? How would they be used in such a situation?
...
I would like to place some large items in the XP system tray. (the one next to the clock)
By this i mean items that take up more than the standard icon space.
I know it can be done because I have seen several weather and time applications with this functionality.
For example http://www.respectsoft.com/weather-clock-screenshots.php (se...
Hello to all,
I'm trying to perform the following cast
private void MyMethod(object myObject)
{
if(myObject is IEnumerable)
{
List<object> collection = (List<object>)myObject;
... do something
}
else
{
... do something
}
}
But I always end up with the following ex...
Before you down vote this question, I realize there are a few other questions but they are all asked with the notion that the OP wants to be a master, long-term, C# programmer. my question is different in that I don't want to be a master C# programmer, nor do I want to 'switch' to C# so I can program everything in it.
I am wondering if ...
I'm building a custom Windows installer package for my .NET 3.5 SP1 WPF application. I want it to detect what version (if any) of the .NET framework is installed on the client's computer, and then automatically download it from Microsoft if they don't have it.
Now, I've read about the .NET bootstrapper and even seen it in action in a C...
hi
GridView.DataKeynames stores the names of the primary key fields for the items displayed in a GridView control.
1) Even though I’ve set DataKeyNames, GridView still doesn’t store record’s primary key value(s) in DataKey object:
protected void SqlDataSource1_Selected(object sender,
SqlDataSourceStatusEventArgs e)
{
...
hi
1) Why can we update data records ( via data source control ) without setting GridView.DataKeyNames property, but when deleting ( and if ConflictDetection property is set to the OverwriteChanges ), DataKeyNames must be set, else GridView will not pass parameters to data source control?
Thank you
...
Hi all,
I have some javascript code that does the following
link.NavigateUrl = string.Format("javascript:MyFunction({0}, {1});", ID1, ID2);
So when the link is click MyFunction will be called and the dynamic parameters will be passed in.
How can I pass in these params using JQery like:
$(function(){
$('#MyLinksID').click(functio...
Hi,
I've been developing "traditional" ASP.NET applications with server side ASP.NET controls and code behind files, etc. Now I'm exploring several JavaScript libraries like: jQuery, YUI, Ext Js, Prototype. (also it's hard to pick one, but it's another post). All these libraries make client to server communication a lot easier, but they...
I recently started working with Silverlight and immediately noticed the difference between the Silverlight BCL and the full .Net and WPF. For some of them I've found great solutions posted online by other developers, and others were more complicated. What features/classes were you surprised/disappointed to find absent from the Silverli...
In C# how do I memoize a function with two arguments?
Do I have to curry before memoization?
Wes Dyer wrote the Memoization code I typically use, but now I need two arguments
...
Look at the code snippet:
This is what I normally do when coding against an enum. I have a default escape with an InvalidOperationException (I do not use ArgumentException or one of its derivals because the coding is against a private instance field an not an incoming parameter).
I was wondering if you fellow developers are coding also...
There is a lot of AOP implementation in C#, VB.net. this is some of AOP Implementations:
Aspect.NET
LOOM.NET
Enterprise Library 3.0 Policy Injection Application Block
Puzzle.NAspect
AspectDNG
Aspect#
Compose*
PostSharp
Seasar.NET
DotSpect (.SPECT)
The Spring.NET Framework as part of its functionality
Wicca and Phx.Morph
SetPoint
An ...
Hi
I am newbie to NHibernate and trying to use Fluent for mapping. My entity class name is different from the database table name it has to be mapped to.
I am using mapping class derived from ClassMap<>, but I can't specify the table name: the property TableName from ClassMap is read-only.
Thanks for your help.
...