Bug #12113 2007-10-04 12:17

howardj603

CB crashes when using misspelled compiler

If a project uses a compiler name (say "Ruby") then the compiler is renamed to (say "Ruby Interpreter"), when loading the project, CB will crash in line 590 of cbprojects.cpp because the pointer compiler==0;

The code needs somethine like:

Compiler* compiler = CompilerFactory::GetCompiler(GetCompilerID());

if (!compiler) compiler = CompilerFactory::GetCompiler(0);

bool isResource = FileTypeOf(filename) == ftResource;

const CompilerTool& tool = compiler->GetCompilerTool(isResource ? ctCompileResourceCmd : ctCompileObjectCmd, fname.GetExt());

to avoid the crash.

Category
Application::Crash
Group
 
Status
Closed
Close date
2007-10-05 19:22
Assigned to
biplab
biplab 2007-10-05 19:22

This bug is now fixed in HEAD.

Thank you for reporting it.