Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > june 2007 > threads for sunday june 17

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Removing whole Xmlnode
Posted by Andrus at 6/17/2007 11:32:41 PM
How to remove whole Xmlnode so that outer tags are also removed ? To reproduce, run the code. Observed result: <Query> <DataSourceName>DS1</DataSourceName> <QueryParameters> </QueryParameters> </Query> Expected result: <Query> <DataSourceName>DS1</DataSourceName> ...more >>


Need Help declaring parameter variables for DllImport for c-dll fu
Posted by Pucca at 6/17/2007 10:35:00 PM
Hi, I'm using vs2005, .net 2, C# for Windows application. I use DllImport so I can call up a function written in C++ as unmanaged code and compiled as a dll us vs2005. My application is able to call the function, EncodeAsnUser. And it's returning OK but when I display the decoded data in an...more >>

CPU usage issues
Posted by sowmya.rangineni NO[at]SPAM gmail.com at 6/17/2007 9:49:10 PM
Ours is a windows based application. When we open the application the CPU usage is 0% and the Memory Usage is 54,324Kb When I open a specific form in a module, the CPU usage is 0% and the Memory Usage increases accordingly (67,730 Kb). Now when I lock and unlock the System the CPU usage i...more >>

Should AutoResetEvent be Disposed explicitly?
Posted by Morgan Cheng at 6/17/2007 8:36:03 PM
In order to arrange a time-out operation, I make the task running in a worker thread; and wait in main thread with AutoResetEvent help. The code is like below. AutoResetEvent ev = new AutoResetEvent(); if ( !ThreadPool.QueueUserWorkItem(WorkerProc, ev) ) { throw new ApplicationException(...more >>

Profiling application
Posted by Andrus at 6/17/2007 5:57:37 PM
My .NET 2 WinForms application is running a bit slow. I suspect that database calls will take too much time. How to find which methods take most of the time? I'm using Visual C# 2005 Express Edition. I havent found any way to create list of executed method calls ordered by execution time...more >>

C# question
Posted by Claudia Fong at 6/17/2007 3:06:13 PM
Hi, I'm quite new in C# programming and windows workflow foundation I have a problem regarding a Local Communication Service question and is like this: I have an interface in my workflow: [ExternalDataExchange] public interface IHostCommunication { int Add(int x, int y);...more >>

Obtaining exclusive access to file / file lock
Posted by Speedy at 6/17/2007 8:50:00 AM
Sorry for aksing such a basic question but I have searched the internet high and low and none of the solutions seem to help. Here is my (not working) code: FileStream fs = new FileStream(FileName, FileMode.Open, FileAccess.ReadWrite, FileShare.None); fs.lock(0, fs.Length); So as you ca...more >>

How to get DNS Server IP address?
Posted by Morgan Cheng at 6/17/2007 6:16:34 AM
In windows, Dns.GetHostEntry invocation on a non-existent domain cost time (about 25 seconds in my machine). So, I decide to implement my own DNS resolution with UDP packet transfer. One problem is that, how to get DNS server IP config for current machine? Thanks ...more >>



A trick to 'minimize' for ListView?
Posted by R at 6/17/2007 1:34:00 AM
Minimizing an app that uses a ListView in a custom control causes all entries in the ListView to disappear, never to return. What would affect this?...more >>

Problem with delegates while sorting
Posted by kriz at 6/17/2007 12:00:00 AM
Hi guy In System.Collections.Generic.SortedDictionary one of the constructors takes an IComparer<T> as its argument.I'd like to sort my dictionary by its key.Im using class CComparer : IComparer<person> { public int Compare(person p1, person p2) { return p1.age.CompareTo(p2.age); ...more >>

visual studio 2005 std closes without any reason
Posted by Lukasz at 6/17/2007 12:00:00 AM
Hello i got problem with vs 2005 std, and it is pissing me off. Im doing some job, for example i wanted to drag my own component into form, and second after that vs just closes without any info, nothing. i cant work with this shit, it closes once a few minutes. :(( Did someone experienced sim...more >>


DevelopmentNow Blog