Safe Gen...

Discussions related to Visual Prolog
User avatar
Ferenc Nagy
VIP Member
Posts: 216
Joined: 24 Apr 2007 12:26

Safe Gen...

Unread post by Ferenc Nagy » 18 Sep 2015 10:18

If I press [Optimal set of include directories] then [Safe gen] the I get error report.
Why?
Attachments
Optimal set of include directories.PNG
Optimal set of include directories.PNG (14.35 KiB) Viewed 6060 times
Exception.PNG
Exception.PNG (16.5 KiB) Viewed 6060 times
TIA, Regards,
Frank Nagy

User avatar
Thomas Linder Puls
VIP Member
Posts: 1164
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 18 Sep 2015 13:20

I do not understand the "user message" what does it say?
Regards Thomas Linder Puls
PDC

User avatar
Ferenc Nagy
VIP Member
Posts: 216
Joined: 24 Apr 2007 12:26

Unread post by Ferenc Nagy » 19 Sep 2015 12:54

TIA, Regards,
Frank Nagy

User avatar
Thomas Linder Puls
VIP Member
Posts: 1164
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 20 Sep 2015 11:34

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.
Regards Thomas Linder Puls
PDC

User avatar
Ferenc Nagy
VIP Member
Posts: 216
Joined: 24 Apr 2007 12:26

Unread post by Ferenc Nagy » 21 Sep 2015 7:46

Attachments
force.png
Check boxes and error messages
force.png (149.49 KiB) Viewed 5998 times
TIA, Regards,
Frank Nagy

User avatar
Thomas Linder Puls
VIP Member
Posts: 1164
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 21 Sep 2015 8:09

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.
Regards Thomas Linder Puls
PDC

User avatar
Ferenc Nagy
VIP Member
Posts: 216
Joined: 24 Apr 2007 12:26

Unread post by Ferenc Nagy » 22 Sep 2015 7:33

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.
TIA, Regards,
Frank Nagy

User avatar
Thomas Linder Puls
VIP Member
Posts: 1164
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 22 Sep 2015 7:55

Something like that ;-).
Regards Thomas Linder Puls
PDC

Post Reply