Home » U++ Library support » U++ Core » Possible bug in LocalProcess
Possible bug in LocalProcess [message #47665] |
Mon, 27 February 2017 00:20  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi,
using LocalProcess I got a bug which makes it work only FIRST time it's called, then fail.
Dumping 'args' variable in LocalProcess::DoStart() gives following :
args = [/home/massimo/.FishIDE/packages/fishino/tools/pic32-tools/4.8.3-pic32gcc/bin/pic32-gcc, .....
on first call, and
args = [FreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFreeFree@, -c, -g, .....
on next calls.
Adding an args.Clear() at beginning of the function solves the problem :
bool LocalProcess::DoStart(const char *command, const Vector<String> *arg, bool spliterr, const char *envptr)
{
LLOG("LocalProcess::Start(\"" << command << "\")");
args.Clear(); <=== HERE!
Kill();
here the dumps :
args = [/home/massimo/.FishIDE/packages/fishino/tools/pic32-tools/4.8.3-pic32gcc/bin/pic32-gcc, -c, -g, -Os..... (first call)
args = [/home/massimo/.FishIDE/packages/fishino/tools/pic32-tools/4.8.3-pic32gcc/bin/pic32-gcc, -c, -g, -Os..... (second call)
Ciao
Massimo
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:26:54 CEST 2025
Total time taken to generate the page: 0.00626 seconds
|