Author Topic: Error on executing using IO.Execute  (Read 3981 times)

Offline Lazybones

  • Multiple posting newcomer
  • *
  • Posts: 14
Error on executing using IO.Execute
« on: February 07, 2007, 06:44:02 pm »
Hello out there,

I want to execute a external debugger with the following code. I use IO.Execute to start the debugger. The command line is assembled in the variable executing.
The call of the program works fine, but as soon as I close the debugger GUI, an Error in CB occurs:

can't open file '' (error 3: ... )

Can anyone help me?

Thank you!
 Sven

Code
function OnMenuClicked(index)
{
  if (index == 0)
  {
    local activetarget = GetProjectManager().GetActiveProject().GetActiveBuildTarget();
    if (!IsNull(activetarget))
    {
      local outputfile = GetProjectManager().GetActiveProject().GetBuildTarget(activetarget).GetOutputFilename();
      local basepath = GetProjectManager().GetActiveProject().GetBasePath();

      local executing = _T("tricore-insight ") + basepath  + outputfile;

      IO.Execute(executing);
    }
    else
    {
      ::ShowMessage(_T("No project opened"));
    }
  }
}