Exemplo n.º 1
0
        public static void Throw_NullReferenceException(uint address)
        {
            HaltReason = "Null reference exception. Instruction: 0x        ";
            FillString(address, 48, HaltReason);

            bool BCPOEnabled = BasicConsole.PrimaryOutputEnabled;

            BasicConsole.PrimaryOutputEnabled = true;
            BasicConsole.WriteLine(HaltReason);
            BasicConsole.DelayOutput(10);
            BasicConsole.PrimaryOutputEnabled = BCPOEnabled;

            FOS_System.Exception ex = new FOS_System.Exceptions.NullReferenceException();
            ex.InstructionAddress = address;
            Throw(ex);
        }
Exemplo n.º 2
0
        public static void Throw_NullReferenceException(uint address)
        {
            HaltReason = "Null reference exception. Instruction: 0x        ";
            FillString(address, 48, HaltReason);
            
            bool BCPOEnabled = BasicConsole.PrimaryOutputEnabled;
            BasicConsole.PrimaryOutputEnabled = true;
            BasicConsole.WriteLine(HaltReason);
            BasicConsole.DelayOutput(10);
            BasicConsole.PrimaryOutputEnabled = BCPOEnabled;

            FOS_System.Exception ex = new FOS_System.Exceptions.NullReferenceException();
            ex.InstructionAddress = address;
            Throw(ex);
        }