Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with IL2CPU Error
#7
@Quajak @kudzu

I experimented a little. I removed the Prompt routine(line 92) and commented out the reference to it. The process then booted in VMWare JUST FINE. Somewhere in these lines is the issue.
Code:
        public void Prompt()
        {
            int commandend = 0;
            int tagpoint = 0;
            string[] tags = { "", "", "", "", ""};
            string command = "";

            commandend = input.IndexOf(" ") - 1;           //Detect and isolate the command from the input
            if (commandend != -1)
            {
                for (int ctr = 0; ctr <= commandend; ctr++)
                {
                    command += input[ctr];
                }
            }
            else
            {
                command = input;
            }

            Console.WriteLine("Received Command '{0}'.", command);

            if (command == "Power")
            {
                for (int ctr = 0; ctr < 5; ctr++)
                {
                    tagpoint = input.IndexOf("/", (tagpoint - 1) + (ctr * 3));
                    if (tagpoint != -1)
                    {
                        tags[ctr] += input[tagpoint];
                        tags[ctr] += input[tagpoint + 1];
                    }
                }
                Console.WriteLine("Tag 0 is '{0}'. Tag 1 is '{1}'. Tag 2 is '{2}'. Tag 3 is '{3}'. Tag 4 is '{4}'.",
                    tags[0], tags[1], tags[2], tags[3], tags[4]);
            }
            else if (command == "Help" || command == "help")
            {
                Console.WriteLine("Standard help message:");
                Console.WriteLine("Power: Used to trigger reboots, shutdowns, and sleep mode.");
                Console.WriteLine("Also changes settings related to Auto-sleep and time-out functions.");
            }
        }

I am going to try putting the Prompt routine into a blank kernel and see what happens.

EDIT: It fails. IL2CPU throws the same issue.
Reply


Messages In This Thread
Help with IL2CPU Error - by AwesomeCronk - 08-14-2019, 08:23 PM
RE: Help with IL2CPU Error - by kudzu - 08-14-2019, 09:10 PM
RE: Help with IL2CPU Error - by AwesomeCronk - 08-15-2019, 12:17 AM
RE: Help with IL2CPU Error - by Quajak - 08-15-2019, 07:10 AM
RE: Help with IL2CPU Error - by AwesomeCronk - 08-15-2019, 11:22 AM
RE: Help with IL2CPU Error - by AwesomeCronk - 08-15-2019, 08:35 PM
RE: Help with IL2CPU Error - by AwesomeCronk - 08-16-2019, 11:22 PM
RE: Help with IL2CPU Error - by AwesomeCronk - 08-17-2019, 10:16 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)