CTKResEdit unable to start

Hello, I am trying to build Slicer and the process requires running CTKResEdit.exe to update some icons, but CTKResEdit fails and it leads to the error below.

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for ‘C:\s\sR\Slicer-build\CMakeFiles\6ea644fa26f044f96bce4abbb021dfc4\[edited].rule’ exited with code -1073741502. [C:\s\sR\Slicer-build\Applications\[edited]\UpdateLauncherIcon.vcxproj

I downloaded CTKResEdit.exe from GitHub - jcfr/ResEdit: Convenient tool allow to update resource within an already compiled windows executable and whenever I try to run it, it displays the error “The application was unable to start correctly (0xc0000142)“. My OS is Windows 11 home.

I also tried running CTKResEdit in another computer with Windows 11 and it run correctly.

Do you have any suggestion on how to solve this problem?

Just for future reference, I found the solution. This was a problem with the hard drive of my PC. I just run the chkdsk /f /r command to fix it and restarted the computer and now CTKResEdit works normally.

1 Like