[fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

Giuliano Colla giuliano.colla at fastwebnet.it
Sat Feb 9 16:43:13 CET 2013


On 02/09/2013 04:19 PM, Michael Van Canneyt wrote:
>
>
> On Sat, 9 Feb 2013, Bart wrote:
>
>> And in this case the OP still needs to do an extra check
>> (try..except), so basically this does not solve his "problem" because
>> it is unsolvable without the programmer checking/validating what
>> GetAppConfigDir did.
>
> Which is why I always write the code to check/create the dir myself.
>
> But having the check/create in a central place can have its advantages.
>

The advantages I can see that it would make easier using VendorName, 
and, most of all,
that once it's been written and debugged it's written and debugged for 
all users, while application code must be written and debugged each time!

Giuliano




More information about the fpc-pascal mailing list