[lazarus] Patch for win32 : ShowModal and Lazconf

Karl Brandt pascalive at bol.com.br
Thu Sep 11 18:00:57 EDT 2003


Mattias Gaertner wrote:
> On Wed, 10 Sep 2003 19:21:04 -0300
> Karl Brandt <pascalive at bol.com.br> wrote:
> 
> 
>>Mattias Gaertner wrote:
>>
<snip>
>>>The secondary config file is for templates. For example admins can setup
>>>some default values for all users.
>>
>>So, the user must copy/make a config secondary file manually?
>>
>>The sequence i had in mind was:
>>
>>Check if secondary exits
>>if no, create one and save to disk
> 
> 
> Normally the secondary config path is not writable for the user.
> 
> 
>>Check if primary exists
>>if no, copy from secondary to primary
>>
>>This way in first run both files will be automatically generated and if 
>>desired, the user can change/edit the secondary/template file.
> 
> 
> The primary is for the user. Most primary files are created on first use of
> the IDE. When the primary exists, the secondary is ignored. So, why should
> the user want to edit the secondary? 
> 
>  

Sorry, I meant admin edit/create secondary file.
The primary config files are not being created at disk,here, after the 
first use. I was trying to copy from secondary which doesn't exist.
I'll update and see if now they are being created.

> 
>>But look that this is not the desired behavior
>>
>>
>>
>>>Can you tell me, where the exception is raised?
>>>
>>
>>Inside CopySecondaryConfigFile function(lazconf.inc)
>>at SrcFS:=TFileStream.Create(SecondaryFilename,fmOpenRead);
> 
> 
> Even with the FileExists addition?
> 
I didn't updated CVS after this change

karl






More information about the Lazarus mailing list