Autor Beitrag
jjturbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Mo 02.11.09 16:31 
Moin Forum,

bei einer BDE-Anwendung werden nach und nach immer mehr Dateien in Session.PrivateDir abgelegt(z.B. _QSQ31.db). Sollten diese nicht eigentlich automatisch wieder verschwinden?

Gruß Oliver

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...


Zuletzt bearbeitet von jjturbo am Mo 02.11.09 17:28, insgesamt 1-mal bearbeitet
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Mo 02.11.09 17:27 
Ich beobachte die Anwendung gerade im Task-Manager, an folgender Stelle wächst der Speicherbedarf jedes Mal um etwa 100 Byte:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
function MachIrgendwas:Boolean;
var MyQuery  :TQuery;
    SQLText  :String;
    StabNr   :Integer;
    PFT      :String;
    s        :String;
begin

  MyQuery := TQuery.Create(nil);

  with MyQuery do begin
    DataSource   := HauptForm.DataSource1;
    DatabaseName := DirectoryData;
  end;


  SQLText := 'SELECT * FROM teiledaten WHERE stabnr=' + IntToStr(StabNr) + ' AND fertig=' + QuotedStr(s)
            +' ORDER BY UnterStabNr,UP';
  MyQuery.SQL.SetText(PChar(SQLText));
  MyQuery.ExecSQL;


  with HauptForm.BatchMove1 do begin
    Source      := MyQuery;
    Destination := StabDatenForm.StabDatenTable;
    RecordCount := 0;
    Mode        := batAppend;
    Execute;//  <-- Alleine hier jedes Mal um 60 Byte...
  end;


  MyQuery := nil;
  MyQuery.Free;
  Result := HauptForm.BatchMove1.MovedCount > 0;
end;


Was ist denn an der Stelle batchmove.execute, daß dort der Speicherbedarf um etwa 60 Byte wächst?

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...