loadlibrary failed with error 1114 When trying to run

Discussions about the BBC BASIC language, with particular reference to BB4W and BBCSDL
191brian
Posts: 2
Joined: Tue 15 Apr 2025, 20:49

loadlibrary failed with error 1114 When trying to run

Post by 191brian »

Hi

I just installed BBC Basic SDL 2 for windows and get the above error "loadlibrary failed with error 1114: DLL inializtion failed" but it doesn't name the DLL
Screenshot 2025-04-15 215930.png
I get the same error if I download the installer or the zip file.

I am running windows 10

Brian ...
You do not have the required permissions to view the files attached to this post.
Richard Russell
Posts: 366
Joined: Tue 18 Jun 2024, 09:32

Re: loadlibrary failed with error 1114 When trying to run

Post by Richard Russell »

191brian wrote: Tue 15 Apr 2025, 21:03 I just installed BBC Basic SDL 2 for windows and get the above error "loadlibrary failed with error 1114: DLL inializtion failed"
A Google search produced this result from Gemini AI:

"The "LoadLibrary failed with error 1114: A dynamic link library (DLL) initialization routine failed" error typically arises from issues with graphics drivers or software configurations, especially when using CAD or 3D applications. Troubleshooting involves updating graphics drivers, ensuring the application is set to use the high-performance GPU, and adjusting power settings".

I can't vouch for the accuracy of that myself, since I've never encountered that message (or received any other reports of it, or anything similar). But it seems plausible because BBCSDL uses OpenGL and because of the variability of GPUs and Graphics Cards that's probably a more likely source of trouble than most other Windows subsystems.
it doesn't name the DLL
There's no way of knowing, but if suspicion is falling on OpenGL then OPENGL32.DLL might be a candidate.
I get the same error if I download the installer or the zip file.
I'm not at all hopeful that it will help, but you could try the 64-bit version rather than the 32-bit version, if you haven't already.
Richard Russell
Posts: 366
Joined: Tue 18 Jun 2024, 09:32

Re: loadlibrary failed with error 1114 When trying to run

Post by Richard Russell »

Richard Russell wrote: Tue 15 Apr 2025, 21:40 There's no way of knowing, but if suspicion is falling on OpenGL then OPENGL32.DLL might be a candidate.
You should probably check the integrity of this DLL, and the other Windows system files, by running sfc /scannow as administrator.

But my gut feeling is that visiting the website of your GPU / Graphics Card manufacturer to see if there's an updated driver may be your best bet.
191brian
Posts: 2
Joined: Tue 15 Apr 2025, 20:49

Re: loadlibrary failed with error 1114 When trying to run

Post by 191brian »

Hi Everybody

Thank you for the sugestions and pointing me towards a graphic's issue.

I ran sfc /scannow which didn't help.

I ran an OpenGL checker that said everything was ok.

My laptop and old HP Probook 4730s has dual graphic's cards an AMD Radeon HD 7470M and a Intel HD Graphics 3000 if I disable the Intel one then BBCSDL works OK thou some of the icons in the editor just show as grey boxes.

Brian ...
Richard Russell
Posts: 366
Joined: Tue 18 Jun 2024, 09:32

Re: loadlibrary failed with error 1114 When trying to run

Post by Richard Russell »

191brian wrote: Wed 16 Apr 2025, 12:08 some of the icons in the editor just show as grey boxes.
One possible explanation for that is a broken or incorrectly implemented glLogicOp() function in the graphics drivers. If AND and OR plotting are not working correctly, the icons will not be rendered properly (and some other programs will not work as they should).

BBCSDL will work perfectly well on the vast majority of Windows PCs (and certainly those new enough to be running Windows 10). If yours is a rare example of one with a broken implementation of OpenGL, you may well find that there is an updated driver available which will fix it.