xsharp.eu • Shared mode
Page 1 of 1

Shared mode

Posted: Thu Oct 13, 2016 9:48 am
by Otto
Where is shared mode settings value stored? I thought it would be in the rsp file.
Edit: I see that it is in the .xsproj file, but I don't see a relation to the rsp file.
How does the cmd compiler link the .xsproj file?

Shared mode

Posted: Thu Oct 13, 2016 10:09 am
by robert
Otto,

The /shared command line option is NOT stored inside the response file.
It must always be passed on the command line.
The xcs tool "knows" about the /shared compiler option and calls the resident program XSCompiler.exe with the complete commandline except the option /shared (
The resident program does not understand the /shared command line option)

Btw there is another command line options that can be used together with /shared and which is also not sent to XSCompiler.exe

/keepalive:=<TimeInSeconds>

This tells the XsCompiler.exe how long to stay in memory after the last compilation has finished.
The default for the keepalive valus is 600 seconds (10 minutes).
And you can also set this default in a config file if you want.
We will include a config file with the next build.

Robert