Autor Beitrag
Ja-Pa
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 458

Win XP, Suse 9.3
D1, D3, D5 Std, D7 Pro, D2005 Pers, Kylix 3
BeitragVerfasst: So 20.02.05 13:59 
Hallo,

ich nutze zur Kommunikation zwischen zwei Programmen Messages mit WM_COPYDATA.
Das Problem ist, dass sich das Sender-Programm so lange nicht mehr reagiert, bis die Procedure, die die Message im Empfänger behandelt, vollständig durchgelaufen ist.
Muss ich im Empfänger die Message als empfangen erklären? Wie mache ich das?

Vielen Dank,
Ja-Pa

_________________
Der Autor dieses Textes haftet nicht für Schäden an Soft- oder Hardware
oder Vermögensschäden, die durch das Benutzen des Textes entstehen.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 20.02.05 16:12 
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 20.02.05 19:43 
Leider muss man im Fall von WM_COPYDATA aber SendMessage verwenden..! Ein versenden per PostMessage ist nicht zulässig..!

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Ja-Pa Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 458

Win XP, Suse 9.3
D1, D3, D5 Std, D7 Pro, D2005 Pers, Kylix 3
BeitragVerfasst: So 20.02.05 19:58 
Danke für eure Antworten!
Eine Möglichkeit ist einen neuen Thread zu erstellen, der die Message sendet.
So hängt sich das Hauptprogramm nicht auf, aber ich halte das für ein bisschen übertieben.

_________________
Der Autor dieses Textes haftet nicht für Schäden an Soft- oder Hardware
oder Vermögensschäden, die durch das Benutzen des Textes entstehen.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 20.02.05 20:09 
Ja, das wäre eine Möglichkeit... du könntest aber auch einfach auf ein anderes Kommunikationsmittel zurückgreifen..

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!