Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

cannot start game.Run(form.RenderControl); EXCEPTIONS OCCURING #297

Closed
tridexanders opened this issue Mar 1, 2014 · 9 comments
Closed
Labels

Comments

@tridexanders
Copy link

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()

@xoofx
Copy link
Member

xoofx commented Mar 15, 2014

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

@xoofx xoofx closed this as completed Mar 15, 2014
@Enqueuing
Copy link

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.

@tridexanders
Copy link
Author

thanks i thought I was going mad, have you found a fix for this?

thanks again...

@xoofx
Copy link
Member

xoofx commented Mar 20, 2014

@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.

@ArtiomCiumac
Copy link
Contributor

The issue should be fixed by the commit above.

@tridexanders
Copy link
Author

Thanks will test in a moment ...

On Tuesday, March 25, 2014 4:50 PM, Artiom Ciumac notifications@github.com wrote:

Closed #297.

Reply to this email directly or view it on GitHub.

@tridexanders
Copy link
Author

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.

@tridexanders
Copy link
Author

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.

... 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.

Reply to this email directly or view it on GitHub.

@ArtiomCiumac
Copy link
Contributor

@tridexanders, this infomation is at the bottom of the homepage of the official site, thank you for support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants