News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

svn 11652 problem

Started by gd_on, April 24, 2019, 11:14:09 AM

Previous topic - Next topic

gd_on

I tried to update my CB from svn 11649 to 11652, on Windows.
Build (even a full rebuild), is OK but when I launch CB it crashes with an error message : cannot start error (0xc000007b).
If I come back to svn 11649, all is OK again.
By looking inside the CB folder, I see that 4 dlls (dbghelp, exchndl, mgwhelp and symsrv) are different. Apparently, in svn 11652 they are 32 bits version though, in my case they should be 64 bits.
If I replace them with the ones found in my svn 11649, it's OK.
To build CB, i have used the new update31_64.bat which calls update.bat. Nevertheless, it seems that CB_HANDLER_DIR has not been set correctly.
gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

#1
Works here, may be "find" is not found?

Can you modify update.bat adding


set CB_HANDLER_DIR
GOTO:EOF


after


set %i% | find "_64" > nul && set CB_HANDLER_DIR=exchndl\win64\bin


and report the result when executing update31_64.bat? (nothing will be done apart from printing the crash handlers' path)

You can test also (should print OK)

echo 31_64 | find "_64" && echo OK || echo FAIL

and (should print FAIL)

echo 31 | find "_64" && echo OK || echo FAIL

gd_on

OK. Path indicated is the win32 one !
Nevertheless, I solved the problem.
It is because I have some unix like executables installed in C:\Utilities_Msys-Unix and there is a find.exe in it which has not the same syntax than the Windows one. This unix-like find.exe is found in my path before the Windows one (this is necessary for, at least, my script to extract strings in CB for translation in French). If I restore the C:\Windows\System32 before the unix one in my path, it's OK.
Thanks for your help.
gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

#3
Well, to prevent this kind of conflicts the find part can be changed to:


set TARGET=%1%
set TARGET_CUT=%TARGET:_64=%
if NOT "%TARGET%" == "" if NOT "%TARGET%" == "%TARGET_CUT%" set CB_HANDLER_DIR=exchndl\win64\bin


EDIT: patch attached to ticket 819, https://sourceforge.net/p/codeblocks/tickets/819/

oBFusCATed

All patches related to update* are in svn.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]