Joined: 12/19/2011(UTC) Posts: 529
Thanks: 10 times Was thanked: 16 time(s) in 15 post(s)
|
Cool, a developer discussion^^ Anyway, I just tried to get started with my plans and added a class with Updateable to start the game logic Normally, when I run the program, I expect a empty window, but I got an exception Here are the details: Code:System.TypeInitializationException wurde nicht behandelt.
HResult=-2146233036
Message=Der Typeninitialisierer für "OpenTK.Graphics.GraphicsMode" hat eine Ausnahme verursacht.
Source=OpenTK
TypeName=OpenTK.Graphics.GraphicsMode
StackTrace:
bei OpenTK.Graphics.GraphicsMode..ctor(ColorFormat color, Int32 depth, Int32 stencil, Int32 samples)
bei DeltaEngine.Graphics.OpenTK20.OpenTK20Device.CreateContext()
bei DeltaEngine.Graphics.OpenTK20.OpenTK20Device..ctor(Window window)
bei lambda_method(Closure , Object[] )
bei Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
bei Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
bei Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
bei Autofac.Core.Resolving.InstanceLookup.<Execute>b__0()
bei Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
bei Autofac.Core.Resolving.InstanceLookup.Execute()
bei Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
bei Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
bei Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
bei Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
bei Autofac.Core.Container.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
bei Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
bei Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
bei Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters)
bei Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType)
bei DeltaEngine.Platforms.Resolver.Resolve[BaseType]()
bei DeltaEngine.Platforms.AppRunner.get_Device()
bei DeltaEngine.Platforms.AppRunner.RunTick()
bei DeltaEngine.Platforms.AppRunner.Run()
bei DeltaEngine.Platforms.App.Run()
bei DeltaBulletTimeTutorial.Program.Main() in c:\Projekte\DeltaTutorial\DeltaBulletTimeTutorial\DeltaBulletTimeTutorial\Program.cs:Zeile 16.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: System.AccessViolationException
HResult=-2147467261
Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Source=OpenTK
StackTrace:
bei OpenTK.Platform.Windows.Wgl.Imports.CreateContext(IntPtr hDc)
bei OpenTK.Platform.Windows.WinGLContext..ctor(GraphicsMode format, WinWindowInfo window, IGraphicsContext sharedContext, Int32 major, Int32 minor, GraphicsContextFlags flags)
bei OpenTK.Platform.Windows.WinFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags)
bei OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags)
bei OpenTK.Platform.Windows.WinGraphicsMode.<GetModesARB>d__10.MoveNext()
bei System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
bei System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
bei OpenTK.Platform.Windows.WinGraphicsMode..ctor()
bei OpenTK.Platform.Windows.WinFactory.CreateGraphicsMode()
bei OpenTK.Graphics.GraphicsMode..cctor()
InnerException:
I don't know what's wrong but normally it shouldn't throw any exception since the program is empty, only the required lines are added. BTW, you may have noticed it in the message log but I'm working on a new tutorial :) One side question: When will the templates for an empty game and an empty library return? I used them for starting my things so it's always helpful :) Edited by user Thursday, August 15, 2013 10:47:14 PM(UTC)
| Reason: Not specified |
|