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 » SetEnv()
Re: SetEnv() [message #37250 is a reply to message #37247] Wed, 12 September 2012 00:26 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Mirek

In my case the program launches another program modifying previously PATH and adding some new variables.

I thought that this solution was easier than changing Sys() and LocalProcess functions to set environment variables for child programs.

Initially if somebody uses Environment(), has to be aware that using SetEnv() will change variables so this does not seem to be a problem.

About MT, I am not sure if environment variables are MT safe at least in Windows. Perhaps SetEnv() would have to be MT protected.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: build Core to static library problem:Value.cpp | 168 | note:type was declared here
Next Topic: LocalProcess to read from stderr
Goto Forum:
  


Current Time: Fri May 17 01:43:37 CEST 2024

Total time taken to generate the page: 0.01470 seconds