Autor Beitrag
kkausp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77
Erhaltene Danke: 1

W2K, WIN XP, WIN XPe; WIN7
(D1;D2;D5;) D6 Ent.; D2009 Ent.
BeitragVerfasst: Mi 06.06.07 07:55 
Delphi 6: Unterschiedliches Verhalten des Prog. im Debugger und als Runtime.

Hallo,

Im Debugger (IDE) funktioniert dieser Code einwandfrei.

ausblenden Delphi-Quelltext
1:
2:
3:
       ProtokollTEST('SET TAG_STUDY_ID from ProcedureID.Text:' + t);
       PS.set_property_(TAG_STUDY_ID,t);
       ProtokollTEST('GET' + PS.Get_property_(TAG_STUDY_ID));


t:string;
PS: ist ein Importiertes COM-Object.


In der Ausführung ausshalb der IDE, der gleichen EXE im gleichem Verzeichnis auf dem selben System, liefert das geht immer einen leeren String.

Hat jemand eine Idee?

Moderiert von user profile iconUGrohne: Delphi-Tags eingefügt.
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Sa 09.06.07 06:18 
Setzt mal spaßeshalber ein Application.ProzessMessage vor das Get_property_. Evtl. wird das Property erst bei "Gelegenheit" gesetzt und nicht sofort.
kkausp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77
Erhaltene Danke: 1

W2K, WIN XP, WIN XPe; WIN7
(D1;D2;D5;) D6 Ent.; D2009 Ent.
BeitragVerfasst: Sa 09.06.07 07:25 
Diese Wunderwaffe haben wir doch schon probiert ;-).

Haben das Get_property_ auch schon vorher explixit einer WideString Variablen zu gewiesen.

Die Daten sind übrigens in PS auch angekommen. Beim Speichern auf DISK und lesen des Files in einem anderen Programm stehen sie drin.

Da kommt mir gerade eine Idee: Ich probiere mal Speichern in einer tmp Datei und anschliessendes Laden.

Ergebnis aber erst Montag.