| Thread | Last Post | Replies |
|
| memory allocation performance | 07 Dec 2006 14:52 GMT | 2 |
I have some loop that should copy X amount of bytes to some byte[] buffer. the byte buffer array is fixed length during the loop but outside the loop the length can change. the loop can be called also inside other loop...
|
| Query power consumption | 07 Dec 2006 13:15 GMT | 3 |
I would like to query (where possible) the power consumption of the local PC. Obviously this requires hardware support, but similar apps leads me to believe that this is possible. I looked at wmi (below) but this is empty on my XP machines... any other ideas on how to get this ...
|
| how to split a string using ,fixed character length, variable text delimmiter | 07 Dec 2006 11:24 GMT | 24 |
I'm working on a data file and can't find any common delimmiters in the file to indicate the end of one row of data and the start of the next. Rows are not on individual lines but run accross multiple lines. It would appear though that every distinct set of data starts with a
|
| Multiple applications docked inside one | 07 Dec 2006 11:23 GMT | 1 |
Does anyone know of such application which can take any application from system and make it a child window inside its frame? Example - Notepad doesn't support tabbed interface. So, if you have multiple Notepad windows open, you can use THE APPLICATION to take
|
| c# console app timeout? | 07 Dec 2006 10:28 GMT | 1 |
We have a c# console app that hits a db stroed proc to get data, it keeps timing out. we tried increasing the timeout value in the connection string, but that's not helping. it runs for about 30 sec then times out. the stroed proc is taking about 45sec to return, but
|
| MDI form and children form hierarchy | 07 Dec 2006 10:04 GMT | 1 |
Is it possible to create inside MDIForms additional child forms which also have form children? For my application it is necessary to create a hierarchy of forms, e.g. MainMDIForm
|
| Marshal.Copy IntPtr -> byte[,] | 07 Dec 2006 07:15 GMT | 4 |
Hi NG, is there a way to copy a buffer pointed to by a IntPtr directly into a two dimensional byte-array? I tried this, what obviously doesn't work:
|
| relative cost of is versus as | 07 Dec 2006 07:10 GMT | 13 |
I'm new to C#, new to a project, and wondering about the differences between two ways of handling a particular situation in our code. In a nutshell, what is the performance difference between "is" and "as" operations?
|
| Argument validation within custom exception | 07 Dec 2006 05:01 GMT | 3 |
This is a long one, so I'll summarize: 1. What are your opinions on raising an exception within the constructor of a (custom) exception? 2. How do -you- validate arguments in your own exception constructors?
|
| GetTimestamp() | 07 Dec 2006 01:33 GMT | 1 |
Anyone knows how to convert the ticks into seconds or milliseconds? beginTick = GetTimestamp(); endTick = GetTimestamp(); totalTick = endTick - beginTick;
|
| Problem when I move an array declaration from within a method, to start of class? | 06 Dec 2006 23:42 GMT | 3 |
Hello everyone I hope you are having a good evening. This evening I made a method that allows me to find the process id's of running processes of a given 'friendly name' - using System.Diagnostic.Process.
|
| Making sure static constructors have been called | 06 Dec 2006 23:15 GMT | 7 |
I want to create a class with a static property as follows: class MyClass { private static List<MyHandler> RegisteredHandlers =
|
| Running a nant .build file from C# | 06 Dec 2006 23:04 GMT | 1 |
I would like to run a nant (.build) file from C# code. I don't know which class to use (from the NAnt.Core namespace, etc) because I haven't found documentation/examples for them such that I can call them in C# code.
|
| Image drawn on custom button subclass does not show up | 06 Dec 2006 21:36 GMT | 4 |
I am trying to subclass a button to create a control similar to the Firefox/IE dropdown button. My first step is to draw the 'down arrow' on the button. I overrided the OnPaint method thusly: protected override void OnPaintBackground(PaintEventArgs pevent)
|
| Xml over tcp/ip | 06 Dec 2006 21:04 GMT | 7 |
I have to applications communication over a socket. All messages are sent by xml. What is the best method to read the response xml? Do I need a delimiter to delimit the xml documents? Can I use something like this:
|