Thanks for your try, so it looks the issue is probably specific on my machine, unfortunately (or fortunately?). About the cbProject member RemoveBuildTarget function, from the documentation I think it has two overload versions, one of which takes int index as a parameter and the other takes const wxString &targetName. I've experienced crashes with both versions.