Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Possible bug in LocalProcess
Possible bug in LocalProcess [message #47665] Mon, 27 February 2017 00:20 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small bug in DeleteFolderDeep
Next Topic: new operator declared twice in MinGW TDM
Goto Forum:
  


Current Time: Fri Apr 26 17:32:52 CEST 2024

Total time taken to generate the page: 0.02503 seconds