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

Safe Gen...

Unread post by Ferenc Nagy »

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 7188 times
Exception.PNG
Exception.PNG (16.5 KiB) Viewed 7188 times
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1216
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

I do not understand the "user message" what does it say?
Regards Thomas Linder Puls
PDC
User avatar
Ferenc Nagy
VIP Member
Posts: 215
Joined: 24 Apr 2007 12:26

Unread post by Ferenc Nagy »

TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1216
Joined: 28 Feb 2000 0:01

Unread post 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.
Regards Thomas Linder Puls
PDC
User avatar
Ferenc Nagy
VIP Member
Posts: 215
Joined: 24 Apr 2007 12:26

Unread post by Ferenc Nagy »

Attachments
Check boxes and error messages
Check boxes and error messages
force.png (149.49 KiB) Viewed 7126 times
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1216
Joined: 28 Feb 2000 0:01

Unread post 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.
Regards Thomas Linder Puls
PDC
User avatar
Ferenc Nagy
VIP Member
Posts: 215
Joined: 24 Apr 2007 12:26

Unread post 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.
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1216
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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