Page 1 of 1

Safe Gen...

Posted: 18 Sep 2015 10:18
by Ferenc Nagy
If I press [Optimal set of include directories] then [Safe gen] the I get error report.
Why?

Posted: 18 Sep 2015 13:20
by Thomas Linder Puls
I do not understand the "user message" what does it say?

Posted: 19 Sep 2015 12:54
by Ferenc Nagy

Posted: 20 Sep 2015 11:34
by Thomas Linder Puls
That indicates that the file is write protected. You can either make the file(s) writable or use the "Force" button.

It can also mean that user (= you) does not have sufficient permissions to change the file. In that case "Force" will only help if you run the IDE in administrator mode.

Posted: 21 Sep 2015 7:46
by Ferenc Nagy

Posted: 21 Sep 2015 8:09
by Thomas Linder Puls
Apparently, on of the PFC files did not have "optimal includes" (though we have as policy that all PFC files should already have "optimal includes"). So the tool is attempting to change a file that is located in C:\Program Files... but changing files in that directory requires that you "Run as Administrator", hence the error.

Posted: 22 Sep 2015 7:33
by Ferenc Nagy
Well Thomas,
We can close the thread with the following conclusions.
1) The procedure invoked by the dialog makes the optimal set of include statements for my own modules.
2) It tries to "optimize" the "pfc" folder :-) fortunately after the optimization of the user owned folders.
3) When the error tombstone appears the user's include statements have been already optimized.
4) The user can neglect the error messages.

Posted: 22 Sep 2015 7:55
by Thomas Linder Puls
Something like that ;-).