Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread John Youngquist
Just an update I removed FPC with Add/Remove programs which didn't 
remove everything.
It left the bin directory with fp.cfg alone. I reinstalled 2.2.0 which 
would not launch but just
blinked on screen. I deleted the FPC root directory and everything below 
it. I reinstalled
2.2.0 and it works. I have regularly seen this failure to launch 
behavior about once a month.
I delete the files in  C:\FPC\2.2.0\BIN\i86-WIN32\ and then re-install. 
Re-installing without

removing those files doesn't work.

I also routinely see unusual behavior during debug. In routine debugging 
suddenly breakpoints
don't break anymore. I exit FPC and restart to return to normal 
operation. SImilarly the watching
of record structures just quits. Restart fixes that to. I was hoping 
2.2.2 might fix these problems.

But it won't even run for me.

I have a rather ordinary setup here that runs most things without trouble.

Never the less I'm a great fan of FPC.

JY


John Youngquist wrote:



Has anyone else ever seen this problem? Is this just a bug in 2.2.2 ?
The file is clearly where it is supposed to be and accessible from 
other programs.
Is this message erroneous or misleading? It does prevent compiling 
anything.


What could cause this?

JY




John Youngquist wrote:

Thanks for all the info but I'm using XP. I can open the fp.cfg with 
notepad.


JY


Michael Green wrote:


Hi John!

I saw someone else that posted a similar issue. Are you using Vista? 
If so, this might help:


* **Right-click** (not the usual left-click) the FPC folder from My 
Computer and select "Options" from the drop-down list (bottom entry).


* There are 4 tabs at the top of the new window, one of them says 
"Security". Select that one and click the "Edit..." button (a window 
may pop up, asking for your permission to continue - Yes, continue...).


* There's a list of groups/users and underneith that, a list of 
access rights. First make sure there's a group called "Users" in 
that first list (it should say something like "Users 
(John-PC\Users)"). If it isn't there, click the "Add..." button, in 
the next window click "Object Types.." and select (checkmark) 
"Users" then hit OK on this and the previous window.


* If "Users" is already in the list, highlight it and from the list 
below select the "Full Control" in the "Allow" column - it will 
automatically select "Modify" as well, but will leave "Special 
Permissions" unselected. That;s ok, so leave it as that and click 
the "OK" button. A window will show what it's doing - applying these 
new security settings to the FPC folder and all subfolders / files.


Now remember that in doing so, any user (Standard OR Administrator) 
on your computer can add/edit/delete folders and files in your FPC 
folder. If that's too much of a security risk for you, either 
upgrade your own user account to have Administrator rights (Start -> 
type "User" and select "User Accounts" from the program list -> 
Select "Change your account type") -OR- you can specifically select 
the FP.CFG file and apply these settings as outlined above to just 
that file instead of the whole FPC folder.


Hope that did the trick for you, but use at your own risk ;-)

-- Mike

John Youngquist wrote:



I JUST GOT 2.2.2 TO REPLACE MY 2.2.0 VERSION.
When I compile a file that worked fine before it aborts immediately 
WITH A MESSAGE:


"UNABLE TO OPEN:  C:\FPC\2.2.2\BIN\i86-WIN32\fp.cfg

Yet this file exists in this directory. Whats wrong?

THANKS  JY

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread John Youngquist


Has anyone else ever seen this problem? Is this just a bug in 2.2.2 ?
The file is clearly where it is supposed to be and accessible from other 
programs.

Is this message erroneous or misleading? It does prevent compiling anything.

What could cause this?

JY




John Youngquist wrote:

Thanks for all the info but I'm using XP. I can open the fp.cfg with 
notepad.


JY


Michael Green wrote:


Hi John!

I saw someone else that posted a similar issue. Are you using Vista? 
If so, this might help:


* **Right-click** (not the usual left-click) the FPC folder from My 
Computer and select "Options" from the drop-down list (bottom entry).


* There are 4 tabs at the top of the new window, one of them says 
"Security". Select that one and click the "Edit..." button (a window 
may pop up, asking for your permission to continue - Yes, continue...).


* There's a list of groups/users and underneith that, a list of 
access rights. First make sure there's a group called "Users" in that 
first list (it should say something like "Users (John-PC\Users)"). If 
it isn't there, click the "Add..." button, in the next window click 
"Object Types.." and select (checkmark) "Users" then hit OK on this 
and the previous window.


* If "Users" is already in the list, highlight it and from the list 
below select the "Full Control" in the "Allow" column - it will 
automatically select "Modify" as well, but will leave "Special 
Permissions" unselected. That;s ok, so leave it as that and click the 
"OK" button. A window will show what it's doing - applying these new 
security settings to the FPC folder and all subfolders / files.


Now remember that in doing so, any user (Standard OR Administrator) 
on your computer can add/edit/delete folders and files in your FPC 
folder. If that's too much of a security risk for you, either upgrade 
your own user account to have Administrator rights (Start -> type 
"User" and select "User Accounts" from the program list -> Select 
"Change your account type") -OR- you can specifically select the 
FP.CFG file and apply these settings as outlined above to just that 
file instead of the whole FPC folder.


Hope that did the trick for you, but use at your own risk ;-)

-- Mike

John Youngquist wrote:



I JUST GOT 2.2.2 TO REPLACE MY 2.2.0 VERSION.
When I compile a file that worked fine before it aborts immediately 
WITH A MESSAGE:


"UNABLE TO OPEN:  C:\FPC\2.2.2\BIN\i86-WIN32\fp.cfg

Yet this file exists in this directory. Whats wrong?

THANKS  JY

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread John Youngquist
Thanks for all the info but I'm using XP. I can open the fp.cfg with 
notepad.


JY


Michael Green wrote:


Hi John!

I saw someone else that posted a similar issue. Are you using Vista? 
If so, this might help:


* **Right-click** (not the usual left-click) the FPC folder from My 
Computer and select "Options" from the drop-down list (bottom entry).


* There are 4 tabs at the top of the new window, one of them says 
"Security". Select that one and click the "Edit..." button (a window 
may pop up, asking for your permission to continue - Yes, continue...).


* There's a list of groups/users and underneith that, a list of access 
rights. First make sure there's a group called "Users" in that first 
list (it should say something like "Users (John-PC\Users)"). If it 
isn't there, click the "Add..." button, in the next window click 
"Object Types.." and select (checkmark) "Users" then hit OK on this 
and the previous window.


* If "Users" is already in the list, highlight it and from the list 
below select the "Full Control" in the "Allow" column - it will 
automatically select "Modify" as well, but will leave "Special 
Permissions" unselected. That;s ok, so leave it as that and click the 
"OK" button. A window will show what it's doing - applying these new 
security settings to the FPC folder and all subfolders / files.


Now remember that in doing so, any user (Standard OR Administrator) on 
your computer can add/edit/delete folders and files in your FPC 
folder. If that's too much of a security risk for you, either upgrade 
your own user account to have Administrator rights (Start -> type 
"User" and select "User Accounts" from the program list -> Select 
"Change your account type") -OR- you can specifically select the 
FP.CFG file and apply these settings as outlined above to just that 
file instead of the whole FPC folder.


Hope that did the trick for you, but use at your own risk ;-)

-- Mike

John Youngquist wrote:



I JUST GOT 2.2.2 TO REPLACE MY 2.2.0 VERSION.
When I compile a file that worked fine before it aborts immediately 
WITH A MESSAGE:


"UNABLE TO OPEN:  C:\FPC\2.2.2\BIN\i86-WIN32\fp.cfg

Yet this file exists in this directory. Whats wrong?

THANKS  JY

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Fatal Error

2008-08-14 Thread Brad Woosley
I am running Windows XP.  Checking permissions on the file? I looked at the 
properties of the file and it the Read only box is Unchecked, so writing to the 
file should be allowed as far as I can tell.  

--- On Thu, 8/14/08, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:

> From: Michael Van Canneyt <[EMAIL PROTECTED]>
> Subject: Re: [fpc-pascal] Fatal Error
> To: [EMAIL PROTECTED], "FPC-Pascal users discussions" 
> 
> Date: Thursday, August 14, 2008, 2:45 AM
> On Wed, 13 Aug 2008, Brad Woosley wrote:
> 
> > When I try to Compile I get an error that it is
> "Unable to open file
> C:\FPC\2.2.2\bin\i386-win32\fp.cfg"
> but when I go to that directory in Windows Explorer, I can
> find that exact file.  Any ideas on how to fix this?
> 
> Check the permissions on the file. You should be able to
> write to it;
> if you are under Vista, this may require some work.
> 
> Michael.
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


  

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread Michael Green

Hi John!

I saw someone else that posted a similar issue. Are you using Vista? If 
so, this might help:


* **Right-click** (not the usual left-click) the FPC folder from My 
Computer and select "Options" from the drop-down list (bottom entry).


* There are 4 tabs at the top of the new window, one of them says 
"Security". Select that one and click the "Edit..." button (a window may 
pop up, asking for your permission to continue - Yes, continue...).


* There's a list of groups/users and underneith that, a list of access 
rights. First make sure there's a group called "Users" in that first 
list (it should say something like "Users (John-PC\Users)"). If it isn't 
there, click the "Add..." button, in the next window click "Object 
Types.." and select (checkmark) "Users" then hit OK on this and the 
previous window.


* If "Users" is already in the list, highlight it and from the list 
below select the "Full Control" in the "Allow" column - it will 
automatically select "Modify" as well, but will leave "Special 
Permissions" unselected. That;s ok, so leave it as that and click the 
"OK" button. A window will show what it's doing - applying these new 
security settings to the FPC folder and all subfolders / files.


Now remember that in doing so, any user (Standard OR Administrator) on 
your computer can add/edit/delete folders and files in your FPC folder. 
If that's too much of a security risk for you, either upgrade your own 
user account to have Administrator rights (Start -> type "User" and 
select "User Accounts" from the program list -> Select "Change your 
account type") -OR- you can specifically select the FP.CFG file and 
apply these settings as outlined above to just that file instead of the 
whole FPC folder.


Hope that did the trick for you, but use at your own risk ;-)

-- Mike

John Youngquist wrote:


I JUST GOT 2.2.2 TO REPLACE MY 2.2.0 VERSION.
When I compile a file that worked fine before it aborts immediately 
WITH A MESSAGE:


"UNABLE TO OPEN:  C:\FPC\2.2.2\BIN\i86-WIN32\fp.cfg

Yet this file exists in this directory. Whats wrong?

THANKS  JY

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread John Youngquist


I JUST GOT 2.2.2 TO REPLACE MY 2.2.0 VERSION.
When I compile a file that worked fine before it aborts immediately WITH 
A MESSAGE:


"UNABLE TO OPEN:  C:\FPC\2.2.2\BIN\i86-WIN32\fp.cfg

Yet this file exists in this directory. Whats wrong?

THANKS  JY

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Compiler option to check return value ignorance

2008-08-14 Thread Vinzent Höfler
Datum: Thu, 14 Aug 2008 08:48:58 -0400
Von: Jeff Wormsley <[EMAIL PROTECTED]>

> be forced to check for conditions that aren't likely to ever occur.  The 
> extra expense in development time isn't worth the risk of not doing the 
> checks.  That cost vs risk analysis will be different for everyone.

Consensus these days is that the earlier a bug is detected the cheaper it is to 
fix. So business-wise a potential bug that doesn't even slip through the 
compiler has zero cost for fixing it.

Another ten seconds of typing work is worth the effort to avoid potentially 
hours of searching for a nasty bug in software that's already deployed in the 
field. Especially when it comes to maintenance, where the poor guy has to 
decide if the ignorance was intentional or not each time.

Well, YMMV.


Vinzent.

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Compiler option to check return value ignorance

2008-08-14 Thread Jeff Wormsley


Vinzent Höfler wrote:

And to be honest, there aren't many cases where you really can ignore the 
result of the function and keep the good conscience of having it done right. If 
a function in Pascal returns something it's usually useful.
  
There are many cases like that, at least in my experience.  Of course, I 
write business apps, not medical systems or rocket guidance, so my 
tolerance for not dotting every i and crossing every t is probably 
higher than others, but at the same time, I certainly wouldn't want to 
be forced to check for conditions that aren't likely to ever occur.  The 
extra expense in development time isn't worth the risk of not doing the 
checks.  That cost vs risk analysis will be different for everyone.


Jeff.

--
I haven't smoked for 1 year, 11 months and 4 weeks, saving $3,277.77 and 
not smoking 21,851.82 cigarettes.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Fatal Error

2008-08-14 Thread Michael Van Canneyt


On Wed, 13 Aug 2008, Brad Woosley wrote:

> When I try to Compile I get an error that it is "Unable to open file 
> C:\FPC\2.2.2\bin\i386-win32\fp.cfg" but when I go to that directory in 
> Windows Explorer, I can find that exact file.  Any ideas on how to fix this?

Check the permissions on the file. You should be able to write to it;
if you are under Vista, this may require some work.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Fatal Error

2008-08-14 Thread Brad Woosley
When I try to Compile I get an error that it is "Unable to open file 
C:\FPC\2.2.2\bin\i386-win32\fp.cfg" but when I go to that directory in Windows 
Explorer, I can find that exact file.  Any ideas on how to fix this?

Thanks.  




  ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal