cannot start game.Run(form.RenderControl); EXCEPTIONS OCCURING #297
Comments
Sorry, we can't make any diagnostic with this description. If you have a simple csproj or can reproduce it with a sample (assuming you are using also latest 2.5.1 dev package and not 2.5.0), that would help |
I actually just ran into this problem as well while looking at the Toolkit/Desktop/MiniCube.SwitchContext.Desktop sample. It appears that the BeginScreenDeviceChange is trying to reference gameForm.ClientSize, but gameForm is null because the control being passed in to the _game.Run() method is a RenderControl, not a RenderForm. |
thanks i thought I was going mad, have you found a fix for this? thanks again... |
@tridexanders, I asked you to provide details about the problem, which sample is not running...etc. Nothing from your side, so I would appreciate that you provide a reproducible case (either by pointing to an existing sample in SharpDX) so that we can investigate this. |
The issue should be fixed by the commit above. |
Thanks will test in a moment ... On Tuesday, March 25, 2014 4:50 PM, Artiom Ciumac notifications@github.com wrote: Closed #297. |
Hi, guys OK the build release today 26 March 2014 , works perfectly now THANKS , just a question how do I make a contribution to you guys? thanks you again and please let me know how to contribute financially to your selves ...PAYMAL , CARD e.t.c. |
Hi, guys OK the build release today 26 March 2014 , works perfectly now THANKS , just a question how do I make a contribution to thanks you again and please let me know how to contribute financially to your selves ...PAYMAL , CARD e.t.c. ... Tridex ... On Wednesday, March 26, 2014 12:47 PM, LEKS ABIM tridex@yahoo.com wrote: Thanks will test in a moment ... On Tuesday, March 25, 2014 4:50 PM, Artiom Ciumac notifications@github.com wrote: Closed #297. |
@tridexanders, this infomation is at the bottom of the homepage of the official site, thank you for support. |
An unhandled exception of type 'System.NullReferenceException' occurred in SharpDX.Toolkit.Game.dll
Additional information: Object reference not set to an instance of an object.
at SharpDX.Toolkit.GameWindowDesktop.BeginScreenDeviceChange(Boolean willBeFullScreen)
at SharpDX.Toolkit.GraphicsDeviceManager.ChangeOrCreateDevice(Boolean forceCreate)
at SharpDX.Toolkit.GraphicsDeviceManager.SharpDX.Toolkit.IGraphicsDeviceManager.CreateDevice()
at SharpDX.Toolkit.Game.InitializeBeforeRun()
at SharpDX.Toolkit.GameWindowDesktop.RunRenderLoop()
at SharpDX.Toolkit.GameWindowDesktop.Run()
at SharpDX.Toolkit.GamePlatform.Run(GameContext gameContext)
at SharpDX.Toolkit.Game.Run(GameContext gameContext)
at SharpDX.Toolkit.Game.Run(Object control)
at ShaderLinking.Program.Main() in c:\Users\TridexAspire\Desktop\SharpDX-SDK-LatestDev\Samples\Toolkit\Desktop\ShaderLinking\Program.cs:line 20
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
The text was updated successfully, but these errors were encountered: