User forums > Help

Tools Menu item causing wxWidgets Debug alert in C::B

<< < (2/2)

cacb:
Does this mean the problem is in wxWidgets and/or git, and therefore not something to be solved in C::B? It is not entirely clear to me what the conclusion is.

oBFusCATed:
I don't know.
First you have to check what is the exit code of git. If it is 259 then it is an issue in git, but I doubt it returns this error code, because git is a unix software and there the exit code is 8bit.
After you know the exit code of git we could have a better idea where to look for the problem. I'm not on windows, so I cannot check this.

cacb:

--- Quote from: oBFusCATed on May 06, 2019, 01:59:23 pm ---I don't know.
First you have to check what is the exit code of git. If it is 259 then it is an issue in git, but I doubt it returns this error code, because git is a unix software and there the exit code is 8bit.
After you know the exit code of git we could have a better idea where to look for the problem. I'm not on windows, so I cannot check this.

--- End quote ---

Ok, I just checked it by opening a cmd.exe terminal window in one of my git folders, and did

git gui

then as the gui was active, i typed in the terminal

echo %errorlevel%

The answer I got was 259

After closing the git gui window, I tried again and got 259 still.

oBFusCATed:
I guess you have to report this to your vendor of git.exe.

Generally we should build with asserts disabled, but I think for now it is a good idea to do so.
Probably we could replace the assert handler to be less vocal and just to log in the debug log, but I don't know if this is possible at the moment.

cacb:

--- Quote from: oBFusCATed on May 06, 2019, 02:43:04 pm ---I guess you have to report this to your vendor of git.exe.

--- End quote ---

 ;D I guess this is true, the issue should be reported somewhere. Just to be sure I upgraded to the latest git (git version 2.21.0.windows.1) and checked again. The same happened. So, instead I tried a work-around by writing a MSVC C++ console program called "git_gui", the complete source code follows :


--- Code: ---#include <windows.h>
#pragma comment (lib,"shell32.lib")
int main()
{
    ShellExecute(0, "open", "git", "gui", NULL, 0);
    return 0;
}
--- End code ---


I then reconfigured The tools menu to refer to git_gui.exe instead of git gui and it worked  :P

Navigation

[0] Message Index

[*] Previous page

Go to full version