Hi Guys I have written an application that will process varying tasks at scheduled times. The application runs fine as a standalone application. I want this to run as a Windows Service on the fileserver so that the program is always running 24/7. I can add my application as a service using srvany as per Calvin Hsia's weblog. The application runs fine as a service and processes my tasks as I expect. The problem is when the application crashed or a problem is encounter, the error handler in my application is not fired. The application just stops working (although still running as service) and there is not indication as to what the error is that has been encountered. How I would like it to work is that an error log is produced by my error handler. Then the application shutsdown (using my ON SHUTDOWN methid) and then the service can be resumed. Is this feasible and if so how do I go about this as I cannot figure out how to do this.
Any help would be much appreciated. Thanks Darren This e-mail is confidential and intended for the addressee only. If you are not the person to whom it is addressed, you must not print, copy or distribute it or take any action in reliance upon it. E-mail may be intercepted or corrupted and C K Chartered Accountants is unable to accept responsibility for any breach of confidence arising through use of this medium. C K Chartered Accountants will not accept liability for contractual commitments or statements made by individuals employed by them outside the scope of our business, which is the supply of audit, accountancy and related professional services. Please ensure you have adequate virus protection before you open or detach any documents attached to this e-mail. An e-mail reply to this address may be subject to monitoring for operational reasons and lawful business practices. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

