Autor Beitrag
kandesbunzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 1


Delphi 7, XE2
BeitragVerfasst: Fr 24.11.06 10:28 
Hallo allerseits,

folgendes seltsames Problem tritt auf, wenn ich die Routine FindFiles von zwei verschiedenen Stellen meines Programmes heraus aufrufe, wobei sich nur der Übergabeparameter 'Dateiname' ändert und die Ergebnisse an sich korrekt sind, aaaber: Der erste Aufruf liefert (korrekt): 'c:\pfad1\test1.exe'. Der zweite Aufruf: "'c:\pfad2\test2.exe'#$D#$A'c:\pfad2\test2.exe'#$D#$A' " - also zweimal in einem String.

Wth, was mache ich falsch?

Auf bald ...
kandesbunzler.


Moderiert von user profile iconGausi: Topic aus VCL (Visual Component Library) verschoben am Fr 24.11.2006 um 10:31
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 24.11.06 10:31 
Der Fehler liegt in der Funktion GetAllFilenames. Genauer gesagt in Zeile 42, wo die temporäre Stringlist nicht neu initialisiert wird.

_________________
We are, we were and will not be.
kandesbunzler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 1


Delphi 7, XE2
BeitragVerfasst: So 10.12.06 15:45 
Hallo Gausi,

Dein Tip war richtig - Problem gelöst.
Danke sehr!

Auf bald ...
kandesbunzler