Forum > General

Free Pascal 2.6.2 , saving options

<< < (2/3) > >>

Nitorami:
And, how do you start FPC ? Do not click on the icon, I had massive problems with that. I recommend to open a command shell (cmd.exe) , go to the working directory and start the IDE from the shell.

bigdormouse:
FPC path
C:\FPC\2.6.4\bin\i386-win32\fp.exe

Start from command shell didn't help, options not saved  :(
---------------------------------------------------------------
C:\>cd fpc

C:\FPC>cd 2.6.4

C:\FPC\2.6.4>cd bin

C:\FPC\2.6.4\bin>cd i386-win32

C:\FPC\2.6.4\bin\i386-win32>fp.exe
  Free Pascal IDE Version 1.0.12 [2014/03/06]
  Compiler Version 2.6.4
  GDB Version GDB 7.4
  Using configuration files from: C:\FPC\2.6.4\bin\i386-win32\

C:\FPC\2.6.4\bin\i386-win32>fp.exe
  Free Pascal IDE Version 1.0.12 [2014/03/06]
  Compiler Version 2.6.4
  GDB Version GDB 7.4
  Using configuration files from: C:\FPC\2.6.4\bin\i386-win32\

C:\FPC\2.6.4\bin\i386-win32>
---------------------------------------------------------------

Big Dormouse

Nitorami:
It's got to work. Try this:
Open a command shell.
Create a new directory and copy your sources there.
Go to this directory and start fp (should be in the windows search path anyway !)

You will be informed that fp has never started from this dir, and you'll be asked a few questions. Answer that you want to create a config file in this directory, and that it should be created from scratch.

fp creates three files in that directory, fp.ini, fp.cfg and fp.dsk. That works fine for me, options are stored, and everything is ok until the time that fp.dsk is messed up.... but that should take a while.

Something else that caused weird problems for me is if the screen settings for fp do not match the windows console settings. I usually set fp's video mode (Options/Env/Preferences) to 80x80 color, and set the shell properties to the same values (right mouse click on the title bar / properties of the cmd window).

Edit: Just because you are administrator does not I think necessarily mean that fp may write to all directories. For instance I used to read binary data files, generated by a digital data recorder, from an external drive to process them with my program. But when I changed to win7, this did not work any longer; it worked for some folders but not for others although they were all created by the same recorder. 
Then I learned that win7 introduced additional file access control (User Account Control UAC), and the consequence is that I can still access these files manually, because win7 trusts me for some reason, but fp cannot, because win7 does not trust it. The logic behind that is completely beyond me, all I want is a workaround... setting fp's system.filemode to fmOpenRead seems to satisfy win7 that my program will not do evil things to my files, jobd done for me.

Anyway, that has little to do with your problem but what I'm saying is that in general it appears to be less hassle to work in local folders and have fp create its config files there.

bigdormouse:
Continues on Windows XP

With system variable PATH was something wrong - installations creates several fpc items and uninstallations don't delete them :(

Changed system variable PATH
from
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\FPC\2.6.2\bin\i386-Win32;C:\FPC\2.6.4\bin\i386-Win32;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Skype\Phone\;C:\FPC\2.6.4\bin\i386-Win32
to
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Skype\Phone\;C:\fpcorg\bin\i386-win32

After that from command prompt create new directory, copy sources, delete three fp files - fp.ini, fp.cfg, fp.dsk
Start fp, yes create config file in this directory from scratch, oki
Yes - there is something also with screen, but this we will leave to the next step

And no - options not saved after next start :(

Problem on next start fp tells about first start and asks again create configuration file?
Strange. fp creates in this directory only fp.cfg and fp.dsk (181KB - i hope file oki) , there is no new file fp.ini :(  , hmmmm
Also i found in options, environment, preferences - desktop file can be in current directory or config file directory.
At this moment - marked config file directory, maybe must be changed to current directory..... hmmmmm

fp creates fp.ini at this moment only under %appdata%\fp .... strange , hm , why not in current directory ?

Big Dormouse,
continues trying


------------------------------------------------------------------------------------
C:\>md fpcorg

C:\>xcopy c:\fpc\2.6.4\*.* c:\fpcorg /h /e /q
16166 File(s) copied

C:\>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\In
tel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsP
owerShell\v1.0;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Skype\Phone
\;C:\fpcorg\bin\i386-win32;C:\Java\jdk1.7.0_40\bin;

C:\>cd c:\fpcorg\bin\i386-win32

C:\fpcorg\bin\i386-win32>del fp.ini

C:\fpcorg\bin\i386-win32>del fp.cfg

C:\fpcorg\bin\i386-win32>del fp.dsk

C:\fpcorg\bin\i386-win32>dir fp.*
 Volume in drive C is SYSTEM
 Volume Serial Number is 14E6-07E9

 Directory of C:\fpcorg\bin\i386-win32

16.05.2005.  19:37             4 515 fp.ans
06.03.2014.  16:24         9 497 088 fp.exe
               2 File(s)      9 501 603 bytes
               0 Dir(s)  18 358 579 200 bytes free

C:\fpcorg\bin\i386-win32>fp
■ Free Pascal IDE Version 1.0.12 [2014/03/06]
■ Compiler Version 2.6.4
■ GDB Version GDB 7.4
■ Using configuration files from: C:\Documents and Settings\skolotajs\Applicatio
n Data\fp\
------------------------------------------------------------------------------------

bigdormouse:

Ou, good news.
Options, Save as - saves and creates fp.ini file where i show (and not where fp thinks to put)  C:\fpcorg\bin\i386-win32
Bad
Fp at start don't know how to load saved options from this fp.ini - loads only part of options. I must go to options and load manualy fp.ini for fp.
Hm, how to teach fp to load this fp.ini file at start?

Big Dormouse
feels good as in old good times :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version