Solved

My computer will not shutdown nor restart.

Posted on 1998-10-03
3
183 Views
Last Modified: 2010-05-18
Hello all:

I have an application that puts an icon on the system tray.
Everything works fine, util i shutdown or restart my computer.  The computer will not shutdown nor restart if the systray icon is active.  I must first exit my application and then shutdown my computer.

Can anyone tell me what to do?...how can I detect if the computer receives a shutdown or restart instruction?
I'm using rxlib240 to handle the systray icon.

Thanks
0
Comment
Question by:jconde2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 80 total points
ID: 1341645
Hello

I guess you use CanClose := False; in the OnQueryClose() of the formmm....you can not do that.....instead use the Action := caNone in the OnClose() of the form........

Regards,
Viktor Ivanov
0
 

Author Comment

by:jconde2
ID: 1341646
Hey viktornet!

As always, it's great having you around!

Thank you :)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341647
>As always, it's great having you around!
Thanks!
>Thank you :)
No problem :)

Take care! Bye...

Regards,
Viktor Ivanov
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question