A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Hello, I'm looking for a CLR event (or hook) that allows running .NET code on that same thread before it terminates. This hook should work for both "new Thread()" and also threads from thread pools...
| On Monday, November 16th 2009 at 10:32 AM by Anonymous | No Replies |
Hi, I am able to CorBind, but unable to call ExecuteApplication in C++. The method call simply crashes. I can't figure out the format of the LPCWSTR parameters. Do you or could you provide me...
| On Thursday, May 21st 2009 at 10:44 PM by Anonymous | No Replies |
Hi, I am trying to install an interop dll for application development. But after I find the regasm.exe and run it, and then go both .NET command line or Run command under start button of computer...
| On Thursday, May 21st 2009 at 12:16 PM by Anonymous | 1 Reply |
Hello, I have an application that programmatically generates the deployment and application manifests and copies all necessary files and dependent assemblies in a couple of subfolders. The problem...
| On Friday, May 8th 2009 at 03:31 PM by Anonymous | No Replies |
I have this class: public class inputclass { public getit( MyClass inputObject ) { Console.Write( inputObject.TextProp ); } } I have some code in another class that gets an object via...
| On Tuesday, May 5th 2009 at 05:20 PM by SnapDive | 3 Replies |
In my .net application, one of my thread is hanging inside unmanaged code. How to terminate this thread from another managed watcher thread. A call to the thread.Abort() from the watcher thread will...
| On Tuesday, April 21st 2009 at 10:28 PM by Su | 1 Reply |
Hi All, I'm trying to malloc a 2D array of doubles thus: double ** _intervals = (double**) malloc(sizeof(double*) * dPeriods) ; if (_intervals != NULL) { for (x = 0; x < dPeriods; x++) {...
| On Tuesday, February 24th 2009 at 01:18 PM by Bubba | 1 Reply |
Hello Please advance some practical / real world example of using long weak reference from your experience. If there's no practical adoption maybe some theoretic / hypothetical? My ultimate...
| On Tuesday, February 24th 2009 at 06:35 AM by maciek | 1 Reply |
I have a simple requirement, I need to write a small console app as a little tool, I want to store message captions in String Table, for application compilation I use managed code appraoch with C++,...
| On Monday, February 23rd 2009 at 12:56 PM by Anonymous | 1 Reply |
I have recently been implementing some code to decode/encode signatures in metadata according to the CLI Specification ECMA-335. When I came to test the code for interpreting a LocalVarSig (Partition...
| On Wednesday, February 11th 2009 at 07:46 AM by nick.smith2.uk@gmail.com | No Replies |
Hi All, i am currently working on writing automated Tests for .NET application. These Tests are written using JUnit and NUnit. For Test-Tasks concerning ASP.NET i am using UltiDev Cassini. Unfortunately...
| On Wednesday, February 4th 2009 at 08:27 AM by hpw | No Replies |
How can you dynamically create a new generic type that has a generic base type that needs a generic parameter? From what I can tell from the API, this isn't possible... because: 1) To define...
| On Tuesday, January 6th 2009 at 04:04 PM by Anonymous | 1 Reply |
Hello everyone, I've been fooling around with what's possible and not with the TypeDescriptorProvider and found a limitation that I would like confirmed if possible. I derived a class from CustomTypeDescriptor...
| On Tuesday, December 16th 2008 at 02:39 PM by Anthony | No Replies |
The runtime has encountered a fatal error. The address of the error was at 0x79ed7e94, on thread 0x16ec. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable...
| On Tuesday, November 25th 2008 at 08:34 AM by chandra | No Replies |
Hi, I'm getting a SerializationException when trying to call System.Windows.MessageBox.Show from a WPF user-control that is hosted across a System.AddIn pipeline in an elementHost in a Windows...
| On Tuesday, November 4th 2008 at 07:24 AM by Mike Hudgell | 1 Reply |
Hello, I get a nonexpected exception when I try to open a filestream with fileaccess mode OpenOrCreate. If there is no file a FileNotFoundException is raised instead of creating the file!? What's...
| On Monday, October 6th 2008 at 09:24 AM by Arkej | No Replies |
Hi Problem: backgroundworker not calling back onto the thread that created it. I was under the impression that if you create the BackgroundWorker on a thread, any progress pushed from the background...
| On Thursday, September 25th 2008 at 03:08 AM by Anonymous | 1 Reply |
I am running a Widows NET 2.0 service on XP SP2 using httplistener. Everything seem to work fine until you send the service repeated reuqests ( hold down F5 on the browser). It eventually throws the...
| On Tuesday, September 23rd 2008 at 11:45 AM by Anonymous | No Replies |
For example, IL_0000: nop IL_0001: ldstr "abc" IL_0006: stloc.0 IL_0007: ldc.i4.1 Does this some how indicate how many steps each instruction will take? I...
| On Thursday, September 18th 2008 at 01:36 PM by Anonymous | 3 Replies |
Hello I have developed a windows service. A few days ago we noticed it just stops functioning. I installed the .net 3.5 SP1 which should include all the patches up to now. There was no change. Once...
| On Tuesday, September 9th 2008 at 05:37 AM by Rotem | 2 Replies |
[ This is a resend, because I sent it to m.p.d.framework before but I realize that this is more of a CLR question, sorry to those that have to read it twice! ] Hi Group, I have a program which...
| On Monday, September 1st 2008 at 04:03 AM by knattetjatte@googlemail.com | 7 Replies |
We are seeing an error in our SQL Server logs I'm not very familiar with, and was hoping someone on her ecould shed some light on the subject... I installed the SS DBA Dashboard on one of our boxes...
| On Thursday, August 28th 2008 at 04:51 PM by Anonymous | 2 Replies |
Hi, In Framework 2.0, 3.0, 3.5 (without SP1) I have to create a code access group with caspol.exe to publish an application with FullTrust over a network share. In Framework 3.5 SP1 it seems that...
| On Monday, August 25th 2008 at 09:06 AM by Anonymous | 1 Reply |
Typemock Isolator =96 A powerful mocking framework for .NET unit testing and Test Driven Development (in Visual Studio). http://www.typemock.com/learn_about_typemock_isolator.html NUnit - A unit...
| On Friday, August 22nd 2008 at 01:13 PM by snarrow.mo | No Replies |
I have been doing some research on Managed code v.s. Native code. In my first battery of tests I have realized that the optimization performed during the JIT compilation is not nearly as good as...
| On Monday, August 18th 2008 at 03:53 PM by Anonymous | 14 Replies |
I have a large c/c++ (testunmanaged.exe) program that we need to have start and cooperate with a .NET 2.0 assembly (testmanaged.dll) written in c#. The program highlights of the code are below....
| On Monday, August 18th 2008 at 02:56 PM by Anonymous | No Replies |
Hi I've openned a VB 2005 Windows Forms project in VB 2008, and gone through the Upgrade Wizard. In Project Properties, I have changed the Framework from the default 2.0 to 3.5, and in the Build...
| On Tuesday, August 5th 2008 at 11:11 PM by Barry Flynn | 3 Replies |
Hi, When using a dynamic method in a generic list class. It works fine as long as i fill the list with class objects, however if the type is an interface i get an ArgumentException. {"Invalid type...
| On Monday, August 4th 2008 at 04:21 AM by Anonymous | 4 Replies |
Hi guys, I am trying to redirect an assembly to use older version that it actually is. I am using this construction: I want to redirect revision 122 to revision...
| On Friday, August 1st 2008 at 01:49 AM by Martin Kulov [MVP] | 1 Reply |
When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
| On Monday, July 28th 2008 at 09:37 PM by DR | 1 Reply |
how can I detect using reflection whether I can derive from a given type or not. For example: System.Enum System.ValueType System.Delegate System.Array you cannot...
| On Saturday, July 26th 2008 at 03:08 PM by cody | No Replies |
Hi there, Does anyone know if there's a (simple) way to detect whether an arbitrary "System.Type" originates from the .NET framework opposed to a user-defined assembly. Thanks.
| On Monday, July 21st 2008 at 07:05 PM by John W. | 4 Replies |
How do I return a collection from an object? List list = _textArea.getTexts; gives me this error message? Error 1 Cannot convert method group 'getTexts' to non-delegate type 'System.Collections....
| On Tuesday, July 15th 2008 at 11:30 AM by Anonymous | No Replies |
While I understand what Dispose and Finalize do and the difference between them, I am still struggling to understand why I might implement IDisposable in my classes. If I were to use an resource...
| On Sunday, July 6th 2008 at 01:32 PM by Scott M. | No Replies |
Hello. I am currently working on creating a sound API in .NET 2.0 (C#). I tried using WaveOut* API,and it didn't work on some XP systems. Now I am trying to use DirectSound, but I don't want to use...
| On Sunday, June 29th 2008 at 06:06 AM by Anonymous | 1 Reply |
Is it possible to create an instance of a type using "AppDomain.CreateInstanceFromAndUnwrap" by somehow calling a non-default constructor? This is how I'm doing it now using the default parameterless...
| On Friday, June 27th 2008 at 10:01 AM by Anonymous | 2 Replies |
I have a single .Net process with mutiple appdomains. My question centers on how the heap is allocated per process or appdomain? Does a GC run just for an appdomain or for an entire process (all appdomains...
| On Thursday, June 26th 2008 at 03:16 PM by Robert Strickland | 2 Replies |
I only know conceptually from a bit of C/C++ programming that objects are allocated memory on the heap and their reference is stored (if they're in local scope) on the stack of the function where the...
| On Wednesday, June 25th 2008 at 04:24 AM by Water | 3 Replies |
I'll try and be as brief as possible. After win2003 sp2 was installed on our web servers they began throwing out of memory errors with our asp.net app. I changed the IIS app pool to use 1 worker process...
| On Friday, June 20th 2008 at 06:30 PM by JR | 3 Replies |
I understand that reflection-only loading avoids probing and, at some point or another, you need to manually resolve dependencies. However I was surprised to notice that even when I preload the dependencies...
| On Friday, June 20th 2008 at 11:55 AM by Anonymous | No Replies |
We have a .Net 1.1 application and witnessing huge variance in performance, and suspect the GC is the culprit. The same operation can take 6mins initially, then 2:30 mins, then 3 mins. The variance...
| On Thursday, June 19th 2008 at 04:51 PM by Anonymous | No Replies |
Hi all. I have the following problem: if I change the timezone while my program is running, I can have two scenarios: 1) DateTime.Now and DateTime.UtcNow return the correct time but DateTime.UtcNow...
| On Monday, June 16th 2008 at 03:19 AM by Anonymous | 3 Replies |
Hello, I just did some refatoring, mostly moving a bunch of classes to a few new namespace. As a result it seems to have improved startup time. I can't prove it anymore, but seems correct? Can...
| On Sunday, June 1st 2008 at 02:12 PM by schneider | 6 Replies |
Hi I have a problem where a windows application has a low CPU hang and I am trying to rule out some symptoms I am seeing. Without going into too many details at this time, BEFORE the problem occurs...
| On Wednesday, May 21st 2008 at 04:33 AM by Anonymous | 2 Replies |
Hello, I'm searching for a console-pipe pattern to mimic the behavior of pipe-processing commands like "more.exe". Currently I have this: using ( Stream strm = Console.OpenStandardInput() ) {...
| On Friday, May 16th 2008 at 11:11 AM by Markus | No Replies |
Hi all, Is it possible to enabled CLR on a target database via an installation program. I'll be distributing an application that uses CLR integration, but I won't have access to the remote systems...
| On Friday, May 16th 2008 at 04:11 AM by Jules140 | 2 Replies |
hi, our website is running on a windows 2003, server ed., sp2 and .net framewok 2.0 i am getting the below mentioned error quite frequently. we have recently upgraded the windows to sp2 from sp1...
| On Thursday, May 15th 2008 at 06:48 AM by nemesis.saurabh@gmail.com | No Replies |
I'm using reflection API's to find the argument types of a methods (such as in or out etc). For example, consider this method public int outerFoo(string str, ref double db) { return 42; } When...
| On Wednesday, May 7th 2008 at 11:00 PM by Anonymous | 5 Replies |
CLR-error: 80004005 This program will now be closed The computer is a few months old and runs on Windows Vista Home Premium ( Dutch version) This message has been appearing for the past few day...
| On Friday, May 2nd 2008 at 08:47 AM by Anonymous | No Replies |
Hi all, sorry for Crossposting, but i dont know whether someone can help me here. If i remember right, there was a Class or a Member function in the .NET Framework that could do mostly the same...
| On Wednesday, April 30th 2008 at 08:15 PM by Kerem G?mr?kc? | 2 Replies |