"--name" argument makes any wx-program use 100% CPU

Emil Gustafsson Tutus emil at tutus.se
Mon Feb 19 06:15:34 PST 2007


I have an update posted on the wx-forum:
http://wxforum.shadonet.com/viewtopic.php?p=57193#57193

In essence I think the problem is in gtk/app.cpp where

for ( i = 0; i < argcGTK; i++ )
{
    while ( strcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
    {
        memmove(argv + i, argv + i + 1, argc - i);
    }
}

should have the memmove changed to:
        memmove(argv + i, argv + i + 1, (argc - i)*sizeof(*argv));








More information about the wx-users mailing list