Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Exit function not executing when service is clossing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
SLee  
View profile  
 More options Dec 20 2005, 10:32 pm
From: "SLee" <shiblee....@gmail.com>
Date: Wed, 21 Dec 2005 03:32:03 -0000
Local: Tues, Dec 20 2005 10:32 pm
Subject: Exit function not executing when service is clossing
Dear All,
I've discussed this issue in other AutoIT group and still got no
solution. Here is summery of my problem. I've a script that runs as
windoes service. that means it has no GUI but it has some MsgBox() to
display on error. Actually, it has GUI but that does not appear when it
runs as service. GUI appears only when it is started with /GUI
parameter from command line. My program runs fine in both mode (service
& stand alone in GUI mode). On error the MsgBox() are also displayed in
both modes. But my exit function only works in GUI mode. I've created a
'exit' menu in this way:

;Code starts----
    $mnu_Exit = GUICtrlCreateMenuitem ("Exit",$mnu_file)
    GUICtrlSetOnEvent(-1, "ExitPing")

    GUISetOnEvent($GUI_EVENT_CLOSE, "ExitPing")
;Code ends----

I've the ExitPing() function and there i've a message box and a code to
write a log in a text file. When I run it from SciTE (i mean from
development environment) the ExitPing() function works. But when it is
running as a windows service the ExitPing() function is not working (or
may be never invoked) on stopping the service. By the way, the 'allow
service to interece with desktop ' option is checked/enabled. Other
message boxes are displayed fine when it is running as service except
this ExitPing() function.

Do I need to write another function to trace whether service is going
to be closed or not? Please help.

Shiblee


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google