This project is read-only.

Problem starting Cosmos in VS 2008

Sep 11, 2008 at 10:10 AM

I just created a new VS2008 project in Cosmos. When running the application the following output is written, resulting in a missing output.bin file exception.
Are there any hard coded paths? Or is sth. missing?

System.Void  CosmosBoot1.Program.Init()
System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefe
hler verursacht. ---> System.Exception: ReturnValues of sizes larger than 8 byte
s not supported yet (16)
   bei Indy.IL2CPU.IL.X86.Call.Initialize(MethodBase aMethod, Int32 aCurrentILOf
   bei Indy.IL2CPU.IL.X86.Call..ctor(ILReader aReader, MethodInformation aMethod
   bei Indy.IL2CPU.IL.X86.Native.Call..ctor(ILReader aReader, MethodInformation
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStr
uct& signature, IntPtr declaringType)
   bei System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStru
ct signature, RuntimeTypeHandle declaringType)
   bei System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)
   bei System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder bi
nder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   bei System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Bind
er binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   bei System.Activator.CreateInstance(Type type, Object[] args)
   bei Indy.IL2CPU.Engine.GetOpFromType(Type aType, ILReader aReader, MethodInfo
rmation aMethodInfo)
   bei Indy.IL2CPU.Engine.ProcessAllMethods()
   bei Indy.IL2CPU.Engine.Execute(String aAssembly, TargetPlatformEnum aTargetPl
atform, Func`2 aGetFileNameForGroup, Boolean aInMetalMode, Boolean aDebugMode, S
tring aAssemblyDir, IEnumerable`1 aPlugs)
   bei IL2CPU.Program.Main(String[] args)
IL2CPU Run took 00:13:02.6954867
Please wait...executing C:\Programme\Cosmos User Kit\Tools\nasm\nasm.exe...
Error when executing: C:\Programme\Cosmos User Kit\Tools\nasm\nasm.exe -g -f elf
 -F stabs -o "C:\Programme\Cosmos User Kit\output.obj" "C:\Programme\Cosmos User
 Kit\Tools\asm\main.asm" from directory C:\Programme\Cosmos User Kit\
C:\Programme\Cosmos User Kit\Tools\asm\main.asm:10: fatal: unable to open includ
e file `D:\dotnet\IL2ASM\repos\Build\Tools\asm\Indy.IL2CPU.asm'
Please wait...executing C:\Programme\Cosmos User Kit\Tools\cygwin\ld.exe...
Error when executing: C:\Programme\Cosmos User Kit\Tools\cygwin\ld.exe -Ttext 0x
500000 -Tdata 0x200000 -e Kernel_Start -o "output.bin" "output.obj" from directo
ry C:\Programme\Cosmos User Kit\
/cygdrive/c/Programme/Cosmos User Kit/Tools/cygwin/ld: output.obj: No such file:
 No such file or directory
Now creating ISO
Try removing 'C:\Programme\Cosmos User Kit\cosmos.iso'
Try removing 'C:\Programme\Cosmos User Kit\ISO\output.bin'
Try copying 'C:\Programme\Cosmos User Kit\output.bin' to 'C:\Programme\Cosmos Us
er Kit\ISO\'

Dec 6, 2008 at 6:11 PM
Edited Dec 6, 2008 at 6:11 PM
Actually, I had this problem too! I tried to remove some of my code (by cutting it from VS) and I found that the problem was that I was using an '\n' at the start of a string. Maybe something to work on...
Dec 7, 2008 at 10:10 AM
I dont expect this error is caused by the string you mentioned. I expect TheCybercore is using the userkit. I think the userkit doesnt have our full return value support.