Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sergioferrari52 on April 04, 2020, 12:24:07 am

Title: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: sergioferrari52 on April 04, 2020, 12:24:07 am
I installed the latest 32bit (2020.3) release on an old computer running Windows Vista.
Installation proceeds smoothly, but the following message appears at CodeBlocks startup:
The Entry Point of the OpenProcess Procedure cannot be found in the dynamic link library:
api-ms-win-core-synch-l1-1-0.dll.
I've verified that the dll exists in the directory C:\Windows\system32.
Consequently, CodeBlocks doesn't start on my machine with Vista 32-bit.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: LETARTARE on April 04, 2020, 09:30:25 am
Hello,
yes, because we need to get the old versions before 'svn11659' of 'cb-xxxx\src\exchndl\win32'. That's a dll and an exe.
I use these old files on 'Vista Business-32', I can't attach them, because the file limit is 512kb (it's 800kb!).
Have a nice day.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: LETARTARE on April 04, 2020, 09:54:18 am
You need to recover (by Tortoise-svn) the svn11196 version of October 14, 2017 in which you will have the right files
http://svn.code.sf.net/p/codeblocks/code/trunk/src/exchndl/win32 (http://svn.code.sf.net/p/codeblocks/code/trunk/src/exchndl/win32)
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: LETARTARE on April 04, 2020, 01:53:12 pm
Well,
if you want to put these files with the executable 'Code::Blocks', you have to copy in the same directory as 'Codeblocks.exe' :
Code
addr2line.exe, dbghelp.dll, exchndl.dll, mgwhelp.dll, symsrv.dll, symsrv.yes 
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: sergioferrari52 on April 04, 2020, 02:03:47 pm
Thank you very much for the answer.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: Neo on April 17, 2020, 07:17:44 am
I have the same problem on a Windows XP VM. But the answer seems unrelated to this DLL error.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: fhl_wh on May 09, 2020, 03:01:43 pm
Thank you very much for the answer.
I have the same problem and have recovered several related files to the specified subversion, but there are still problems with the compiler and debugger. What should I do?
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: oBFusCATed on May 09, 2020, 05:19:41 pm
What do you mean by problems with the compiler and debugger?
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: fhl_wh on May 20, 2020, 03:08:45 pm
The names of the compiler and the debugger have changed, and the related settings need to be modified, but the debugger still has problems. You try it and you understand.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: oBFusCATed on May 20, 2020, 07:01:58 pm
The names of the compiler and the debugger have changed, and the related settings need to be modified...

Yes, this is a known problem of the auto detection. :(

..., but the debugger still has problems.
What problems? I know about many problems, but you might be hitting something I don't know about :)

You try it and you understand.
I'm primary on Linux and the min Windows version I have is 7 64 bit.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: B Trevathan on August 26, 2020, 07:14:22 am

I have the same problem with Code::Blocks 20.03 32 bit not starting on Windows Vista Home Premium 32 bit.

After installing codeblocks-20.03-32bit-setup.exe when I try to start Code::Blocks I get this error:

codeblocks.exe - Entry Point Not Found
The procedure entry point OpenProcess could not be located in the dynamic link library api-ms-win-core-synch-l1-1-0.dll

I tried the things posted above by LETARTARE, but they did not work for me.

I uninstalled the 20.03 version and went back to the 17.12 version, that version works.
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: BlueHazzard on September 05, 2020, 07:28:09 pm
Have you tried to download the dlls and copy them over the dlls in the codeblocks installation?
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: Miguel Gimenez on September 05, 2020, 09:49:05 pm
Frankk is a spammer, he is interested only in posting the link in his signature
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: BlueHazzard on September 05, 2020, 09:54:02 pm
oh.... i didn't saw it...
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: SiZiOUS on December 28, 2020, 07:09:33 pm
Indeed, this error is due to the Dr. MinGW crash handler embedded runtime (https://github.com/jrfonseca/drmingw/).

Starting from the v0.9 runtime of the Exchndl (Crash Handler), old Windows OSes aren't supported anymore.
This issue is related to the dbghelp.dll library provided by Microsoft which helps to analyze crash dumps.

So if you want to have your C::B 20.03 working on an old machine (like me), you have to grab the Dr. MinGW runtime v0.8.2 (https://github.com/jrfonseca/drmingw/releases/tag/0.8.2). You may do that directly on the Dr. MinGW repository (https://github.com/jrfonseca/drmingw/releases/tag/0.8.2) or in the C::B source code, indeed, the svn11196 (https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/) contains the v.0.8.2 runtime. As soon you have downloaded the files in the bin directory, just replace the files in your C::B installation.

If I'm posting this, it's because I have a suggestion:
Would it possible to use the v0.8.2 runtime for the win32 version, as the C::B 32-bit version is out-dated anyway?
In that way, all the 32-bit C::B releases will still be compatible with Windows XP.

Of course, for the 64-bit version, we can still use the most recent version of the Exchndl library.
I did this strategy for my own C::B release (https://github.com/dreamsdk/codeblocks/tree/v20.03) (i.e. v0.8.2 for 32-bit and latest for 64-bit).

Thank you very much!
Title: Re: CodeBlocks 2020.03 32bit, problem on Windows Vista
Post by: oBFusCATed on December 28, 2020, 07:53:21 pm
@Morten: Can we really do this? Will this cause any problems? As you know I don't use windows, so I cannot answer such questions...