1. Using VS2008, I occasionally get
    “Error while trying to run project: Unable to start debugging.  
    The Microsoft Visual Studio Remove Debugging Monitor has been closed on the remote machine”.



    To solve this problem:
    (i)                  Close the Visual Studio.
    (ii)                Open task manager and make sure that “devenv.exe” or “devenv.exe*32” are not running.  If they are close them by selecting them and then click on “End Process”




    0

    Add a comment

  2.         public int OctToDecimal(string data)
            {
                int result = 0;
                char[] numbers = data.ToCharArray();
                int ASCIIZero = 48;
                int ASCIIEight = 56;
                try
                {
                    if (!IsNumeric(data))
                        error = "Invalid Value - This is not a numeric value";
                    else
                    {
                        for (int counter = numbers.Length; counter > 0; counter--)
                        {
                            byte[] ascii = Encoding.ASCII.GetBytes (numbers[counter - 1].ToString ());
                            if ((int.Parse ( ascii[0].ToString ()) < ASCIIZero ) && (int.Parse ( ascii[0].ToString ()) > ASCIIEight ))
                                error = "Invalid Value - This is not a oct number";
                            else
                            {
                                int num = int.Parse(numbers[counter - 1].ToString());
                                int exp = numbers.Length - counter;
                                result += (Convert.ToInt16(Math.Pow(8, exp)) * num);
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    error = ex.Message;
                }
                return result;
            }
    0

    Add a comment

  3.         public string DecimalToOct(string data)
            {
                string result = string.Empty;
                int rem = 0;
                try
                {
                    if (!IsNumeric(data))
                        error = "Invalid Value - This is not a numeric value";
                    else
                    {
                        int num = int.Parse(data);
                        while (num > 0)
                        {
                            rem = num % 8;
                            num = num / 8;
                            result = rem.ToString() + result;
                        }
                    }
                }
                catch (Exception ex)
                {
                    error = ex.Message;
                }
                return result;
            }
    0

    Add a comment

Blog Archive
Topics
Topics
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.