Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-03

TProcess Environment

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Micha Nelissen

Hi,

Even when I write my own environment strings in Process.Environment, still it also inherits all of the environment of the parent process.

How can I prevent this ?

Micha

Reply by email

Michael Van Canneyt
to Micha Nelissen
Micha Nelissen wrote 6 lines
Hi, Even when I write my own environment strings in Process.Environment, still it also inherits all of the environment of the parent process. How can I prevent this ?

This is a bug ?
If Process.Environment is set, then it should replace the current environment. Is this on Windows or on Linux ?

(I suppose Windows, because on Linux it seems OK ?)

Michael.

Reply by email

Micha Nelissen
to Michael Van Canneyt
Show quoted text 8 lines
> Even when I write my own environment strings in Process.Environment, still > it also inherits all of the environment of the parent process. > > How can I prevent this ? This is a bug ? If Process.Environment is set, then it should replace the current environment. Is this on Windows or on Linux ?

Ok, found it I think, the process was setting them itself.

Micha

Reply by email