TmyDump problem

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kenny
Posts: 43
Joined: Mon 15 Nov 2004 08:48
Location: Malaysia
Contact:

TmyDump problem

Post by kenny » Mon 21 Feb 2005 07:23

Hi,
I'm using delphi 5, MyDac 3.50.0.16, MySQL 4.1.8

When I perform

With MyDump1 Do Begin
Backup;
SQL.SaveToFile('C:\MyBackup.sql');
End;

Sometime it occur the error : "Cannot create file"
Why? What is the maximum limit of MyDump1.SQL.Text?

Thanks!

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 21 Feb 2005 10:15

This message raises on try to execute TStringList.SaveToFile (TFileStream.Create(FileName, fmCreate)). Most probably, your file is locked by another process.


> What is the maximum limit of MyDump1.SQL.Text?

At the common case, by TStringList capacity; i.e. by the volume of avaible memory.

Post Reply