Results 1 to 5 of 5

Thread: why "Ctrl+c" different from "close button of console window"

  1. #1
    linkman is offline Registered User
    Name: liao changbin
    Organization: huhan university
    Project: scada
    Join Date
    Jul 2009
    Posts
    23

    why "Ctrl+c" different from "close button of console window"

    my demo appication is :

    ----------------------------------------------------
    class DemoApp : virtual public Ice::Service
    {
    ...
    }
    ----------------------------------------------------

    when click Ctrl+C, the log of my appication is:
    ----------------------------------------------------
    17:03:27.234 Thread5476 INFORMATION Program BEGIN.
    17:03:28.234 Thread5476 INFORMATION ICE startting ...
    ......
    17:03:28.390 Thread5476 INFORMATION ICE startted.
    ......
    17:03:38.859 Thread5476 INFORMATION ICE stopping...
    ......
    17:03:40.093 Thread5476 INFORMATION ICE stopped.
    17:03:40.296 Thread5476 INFORMATION Program END.
    ----------------------------------------------------

    when click close button of the console windows,the log of my appication is:
    ----------------------------------------------------
    17:03:27.234 Thread5476 INFORMATION Program BEGIN.
    17:03:28.234 Thread5476 INFORMATION ICE startting ...
    ......
    17:03:28.390 Thread5476 INFORMATION ICE startted.
    ......
    17:03:38.859 Thread5476 INFORMATION ICE stopping...
    ----------------------------------------------------

    why "Ctrl+c" different from "close button of console window"?

    Ice version (Ice 3.4.1)
    Compiler version (Visual Studio 2008)
    Operating system (Windows xp)

  2. #2
    linkman is offline Registered User
    Name: liao changbin
    Organization: huhan university
    Project: scada
    Join Date
    Jul 2009
    Posts
    23

    why no answer?

    I have wait a week!

  3. #3
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Please note that there is no guarantee that we will provide free support here in these forums. If you require timely responses and guaranteed problem resolution times from ZeroC, please contact us at sales@zeroc.com for a commercial support agreement.

  4. #4
    linkman is offline Registered User
    Name: liao changbin
    Organization: huhan university
    Project: scada
    Join Date
    Jul 2009
    Posts
    23

    But I just a student

    Sorry for my poor English, I just like ICE , and use it in my paper.

  5. #5
    Minthos's Avatar
    Minthos is offline Registered User
    Name: Espen Overaae
    Organization: University of Oslo (student)
    Project: Various personal projects
    Join Date
    Apr 2007
    Posts
    7
    I don't know how it works in windows, but on unix/linux systems the program gets signalled by the os when something happens. Ctrl+C sends the signal SIGINT. When you close the terminal window, another signal gets sent, I don't know which.

    What you can do do diagnose this is trap all signals you can, and see if you can log the specific signal and shutdown the program.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 01-04-2010, 03:38 PM
  2. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Replies: 1
    Last Post: 04-05-2004, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •