Autor Beitrag
RFZ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 10:34 
Moin,
ich hab ein Programm mit ein paar laufenden Timern und nem NMHTTP. Ich kann das Prog ganz normal mit Close oder dem X beenden, wenn ich aber Windows herunterfahre bleibt es an! Aber nur bei XP, bei 9x geht's. Unter XP wird nichtmal der OnClose Event aufgerufen, was kann ich da machen??

cu RFZ


Zuletzt bearbeitet von RFZ am So 04.05.03 11:01, insgesamt 1-mal bearbeitet
TheNeon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 408

Windows
VS2010 C#
BeitragVerfasst: Fr 25.04.03 10:46 
mein Tipp (bevor was gescheites kommt :wink: :roll: ) :

versuchs mal mit dem Event OnCloseQuery ....... vielleicht geht es dann ?!
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 10:48 
nö, geht nicht....
TheNeon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 408

Windows
VS2010 C#
BeitragVerfasst: Fr 25.04.03 10:52 
also mit meinem Prog hab ich da keine Probs unter XP ..... ich weiß ja nicht was dein Proggie so macht.

Sag mal, fährt XP dann nicht runter oder wie macht sich das bemerkbar ?!
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 25.04.03 10:52 
Schau dir mal im PSDK die Messages WM_QUERYENDSESSION und WM_ENDSESSION an..!

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

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 10:54 
@TheNeos
Es fährt einfach nicht runter, ich lande aufm Desktop...
Bei anderen programmen geht's, ich hab dieses NMHTTP oder die Timer im Versacht...

@Motzi
Geht's auch für (fast) Anfänger? *g*

cu RFZ
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 11:47 
@Motzi
ich glaub ich weiss was du meinst...
hab jetzt
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
procedure WMQueryEndSession(var Message: TWMQueryEndSession); message WM_QUERYENDSESSION; *2
procedure WMEndSession(var Message: TWMEndSession); message WM_ENDSESSION; *2

....

procedure WMQueryEndSession(var Message: TWMQueryEndSession);
begin
  inherited; *1
  Message.Result := 1;
end;

procedure WMEndSession(var Message: TWMEndSession);
begin
  inherited; *1
  Message.Result := True;
end;


Das funktioniert aber nicht :(

*1 [Fehler] Unit1.pas(907): Diese Form des Methodenaufrufs ist nur in abgeleiteten Methoden erlaubt
*2 [Fehler] Unit1.pas(64): Ungenügende Forward- oder External-Deklaration: 'TForm1.WMQueryEndSession'

Hab ich übrigens nach dem hier gemacht: delphi.advis.de/syst/19.html
Und das soll mit D4 klappen, tut's aber nicht :(
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 12:06 
Geht jetzt, fast, hätte wohl "TForm1." davorschreiben sollen :)
Hab bei QueryEndSession jetzt einfach Close reingeschrieben.
Daraufhin beendet sich mein Programm zwar, XP währt aber trotzdem nicht runter :(

cu RFZ
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Fr 25.04.03 13:57 
haste das beschleunigte Herunterfahren in XP aktiviert?
kann man mit antispy einstellen...
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Fr 25.04.03 13:59 
Nö, hab kein Antispy..... Ganz normal....
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: So 04.05.03 10:44 
Moinsen, also hab folgendes getestet.
Ich brauch nur ein NMHTTP aufs Formular zu klatschen und schon kann XP meine Anwendung nicht mehr beenden, kann jeder von euch testen. Das NMHTTP muss nichtmal aktiv sein, es reicht dass es da ist!
Wie kann ich das jetzt beheben??
Langsam wird's dringend :)

cu RFZ


---------------------

Nachtrag:
So, Problem gelöst :) Hab bei nmhttp1.destroy; bei QueryEndSession reingehaun und das funzt.
Aber trotzdem seltsam dieses Problem.