Page 1 of 1

Unable to load dll 'SDL.dll'...

Posted: Sat Nov 20, 2010 6:23 pm
by GoliatH
Hi guys!

Just downloaded and installed openRA. Installed without any errors but crashes on startup. Here's the contents from exception.log:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'SDL.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Tao.Sdl.Sdl.__SDL_Init(Int32 flags)
at Tao.Sdl.Sdl.SDL_Init(Int32 flags)
at OpenRA.GlRenderer.GraphicsDevice..ctor(Int32 width, Int32 height, WindowMode window, Boolean vsync)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window, Boolean vsync)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)

Well, its obvious the opengl device failed to get created; sdl.dll couldn't be found... Do I have to install something else too? sdl.dll belongs to the 'Simple DirectMedia Layer' thing... Does openRA use SDL? And how do I fix this crash?

Posted: Sat Nov 20, 2010 8:38 pm
by chrisf
Yes, we do use SDL to handle platform-specific noise we'd rather not think about :)

sdl.dll should have been downloaded into your game directory by the installer -- but it's not as fault-tolerant as it ought to be. Check if just reinstalling fixes it.

Failing that, can I get some more details? OS, 32 or 64 bits, anything else that might give a clue.

Re: Unable to load dll 'SDL.dll'...

Posted: Thu Feb 24, 2011 10:48 am
by sandydekker
GoliatH wrote: Hi guys!

Just downloaded and installed openRA. Installed without any errors but crashes on startup. Here's the contents from exception.log:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'SDL.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Tao.Sdl.Sdl.__SDL_Init(Int32 flags)
at Tao.Sdl.Sdl.SDL_Init(Int32 flags)
at OpenRA.GlRenderer.GraphicsDevice..ctor(Int32 width, Int32 height, WindowMode window, Boolean vsync)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OpenRA.Graphics.Renderer.CreateDevice(Assembly rendererDll, Int32 width, Int32 height, WindowMode window, Boolean vsync)
at OpenRA.Graphics.Renderer.Initialize(WindowMode windowMode)
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)

Well, its obvious the opengl device failed to get created; sdl.dll couldn't be found... Do I have to install something else too? sdl.dll belongs to the 'Simple DirectMedia Layer' thing... Does openRA use SDL? And how do I fix this crash?
Hi,
[link removed]

This is the best place to get dll problems solved.
Just follow the link given above and click the button "Fix dll errors now" and you are through. :)

Posted: Thu Feb 24, 2011 10:12 pm
by Sleipnir
On the off chance that this isn't spam, i'll leave the above post but have removed the link.
Don't use websites like the above - reinstalling OpenRA should fix the problem.

same issues

Posted: Sun Dec 02, 2012 11:44 am
by mastermaher
just put my own post on this

http://www.sleipnirstuff.com/forum/view ... 918#283918

having same issues and this post did not fix them, anyone got any ideas tried re installing and this did not fix the issue