From 7f48cfaca9dea2d4e79a131f3fb6b8be5d9347ab Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Sun, 16 Mar 2008 12:52:33 +0000 Subject: [PATCH] fixed? --- source/Cosmos/Cosmos.Kernel/Old/Staging/StageQueue.cs | 1 + source/Cosmos/Cosmos.Shell.Console/Program.cs | 7 ++++--- source/Indy.IL2CPU/VTablesImpl.cs | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/source/Cosmos/Cosmos.Kernel/Old/Staging/StageQueue.cs b/source/Cosmos/Cosmos.Kernel/Old/Staging/StageQueue.cs index 540b106ed..febe6edf2 100644 --- a/source/Cosmos/Cosmos.Kernel/Old/Staging/StageQueue.cs +++ b/source/Cosmos/Cosmos.Kernel/Old/Staging/StageQueue.cs @@ -43,6 +43,7 @@ namespace Cosmos.Kernel.Staging { _current = (StageBase)_initialize.Dequeue(); Console.Write("Entering stage "); + System.Diagnostics.Debugger.Break(); Console.Write(Current.Name); Console.WriteLine("."); diff --git a/source/Cosmos/Cosmos.Shell.Console/Program.cs b/source/Cosmos/Cosmos.Shell.Console/Program.cs index 06b09f3b2..1aaf89fd9 100644 --- a/source/Cosmos/Cosmos.Shell.Console/Program.cs +++ b/source/Cosmos/Cosmos.Shell.Console/Program.cs @@ -6,8 +6,8 @@ using Cosmos.Hardware; namespace Cosmos.Shell.Console { public class MyClass { - public MyClass(int aParam1, int aParam2) { - System.Console.WriteLine("MyClass..ctor"); + public virtual void Bladibla() { + System.Console.WriteLine("Bladibla!"); } } public class Program { @@ -39,7 +39,8 @@ namespace Cosmos.Shell.Console { System.Console.Write(" "); System.Console.WriteLine(E.Message); } - + MyClass x = new MyClass(); + x.Bladibla(); System.Console.WriteLine("Halting system now.."); // Halt system. diff --git a/source/Indy.IL2CPU/VTablesImpl.cs b/source/Indy.IL2CPU/VTablesImpl.cs index 0eb30e366..e8b949ecd 100644 --- a/source/Indy.IL2CPU/VTablesImpl.cs +++ b/source/Indy.IL2CPU/VTablesImpl.cs @@ -124,6 +124,8 @@ namespace Indy.IL2CPU { //Console.Write(", Method = "); //Console.WriteLine(aMethodIndex.ToString()); do { + //Console.Write("Checking type "); + //Console.WriteLine(aType.ToString()); for (int i = 0; i < mTypes[aType].MethodIndexes.Length; i++) { //Console.Write(" "); //Console.WriteLine(mTypes[aType].MethodIndexes[i].ToString()); @@ -133,8 +135,6 @@ namespace Indy.IL2CPU { } } aType = mTypes[aType].BaseTypeIdentifier; - //Console.Write("Switching to basetype "); - //Console.WriteLine(GetTypeName(aType)); } while (aType != 0); } throw new Exception("Cannot find virtual method!");