Display: Cloud | List
Most Popular Tags
Results (5 total) All > .net (x) > 2.0 (x)
Calling WaitOne() with exitContext=true throws ArgumentException exception (ManualResetEvent.WaitOne Method (Int32, Boolean) (System.Threading))
The following code always throw an exception: protected ManualResetEvent m_ThreadHandle = new ManualResetEvent(false); m_ThreadHandle.WaitOne(0, true); The exitContext parameter to the WaitOne(int millisecondsTimeout, bool exitContext) method must be false.A fellow programmer documented this very well in his blog entry, Compact Framework WaitHandle.WaitOne Gotcha.
Last modified by -- on 1/8/2010 5:23:14 PM
Method marked as "obsolete" on .Net 2.0 x64 (FontFamily.GetFamilies Method (System.Drawing))
I've noticed that this method is marked as "obsolete" on the v2.0sp2 x64 framework, but not on the x86 version of the framework. It's not explained why there's a difference between the x86/x64 frameworks.[Obsolete("Do not use method GetFamilies, use property Families instead")]
Last modified by kwreid on 9/23/2009 8:28:32 PM
Tags:  .net  2.0  obsolete  sp2  x64
C#: Get all Information about Remote Machine (System.Management Namespace ())
using System; using System.Management; namespace ConsoleApplication1{ public class RemoteConnect{ public static void Main() { // Build an options object for the remote connection // if you plan to connect to the remote // computer with a different user name // and password than the one you are currently using. // This example uses
Last modified by Deepak Pandey on 8/22/2009 12:10:16 PM
New Sample for .NET Compact Framework 2.0 (How to: Display IP Addresses for Smartphone Emulators)
// New sample fof .NET Compact Framework 2.0 // Alexander Klimoff using System;using System.Net;using System.Text;using System.Windows.Forms; public class GetAddress{/// <summary>/// A sample application that displays a list of IP addresses /// that are bound to the current device./// </summary> static void Main(){try{IPHostEntry IPHost = Dns.GetHostEntry(Dns.GetHostName());IPAddre
Last modified by janet2009 on 8/6/2009 9:27:29 AM
Max Open Cursors (OracleCommand.Prepare Method (System.Data.OracleClient))
Using the OracleCommand.PrePare command in an loop even though disposing all objects this created an "MAX OPEN CURSORS" exception being thrown. After removing the call to the Prepare method the loop went fine. We are using: Oracle 10.x database. .NET Framework 2.0
Last modified by puttewu on 10/18/2007 12:32:29 PM
Tags:  .net  2.0  cursors  error  framework  open
Page view tracker