[fpc-pascal] EFCreateError' Unable to create file
Michael Van Canneyt
michael at freepascal.org
Sun Jan 25 11:53:23 CET 2009
On Sat, 24 Jan 2009, vmars wrote:
> (Lazarus-0.9.26-fpc-2.2.2-win32.exe) winXP sp2
> I am trying to SaveToFile a Memo1 to disk.
> But can't seem to get it to work.
> Is there a known bug?
>
> Try
> Memo1.Lines.SaveToFile(ExecuteName);
> Except ShowMessage('Shoots, couldnt SaveToFile!');
> end;
>
> [Project raised exception class 'EFCreateError' with message:
> Unable to create file
> ""C:lazarusfpc2.2.2bini386-win32Del2PasDel2PasDel2Pas.bat""]
I don't know why the backslashes are gone, but the fact that it shows
double quotes twice is definitely weird. I don't think windows
allows to use filenames with double quotes in it.
Michael.
More information about the fpc-pascal
mailing list