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

Sven Barth pascaldragon at googlemail.com
Mon Feb 11 17:22:39 CET 2013


On 11.02.2013 17:16, Mattias Gaertner wrote:
> On Mon, 11 Feb 2013 17:02:39 +0100
> Sven Barth <pascaldragon at googlemail.com> wrote:
>
>> On 11.02.2013 15:30, Mark Morgan Lloyd wrote:
>>> If anything, it is the fault
>>> of AppConfigDir for indicating a directory without raising an exception
>>> pointing out that it doesn't yet exist :-)
>>>
>>
>> And AppConfigDir/File is documented as not guaranteeing that the path to
>> the directory or file exists. This also includes upper parts of the
>> path's tree.
>
> And here is an example, what happens when a program blindly forces
> directories:
>
> http://www.administrator.de/images/content/e06eaa5bdbdca8c9602d9d0f7c5b4e09-1.gif

Hui O.o It shows nicely that NTFS and Windows support Unicode characters :P

> It seems some system variables under Windows sometimes contain
> gibberish. But that's off topic.

Either that or the application did use the corresponding APIs correctly...

Regards,
Sven




More information about the fpc-pascal mailing list