Results 1 to 4 of 4

Thread: Error in service implementation

  1. #1
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172

    Error in service implementation

    Dear people at ZeroC,

    When running my services on my Windows 2003/ XP/ NT machines and changing the current user, the service will be terminated. As this is quite uncommon for services, I'd like to ask you to change this behavior
    Unfortunately I did not find no error in your current implementation, but I hope that you will be able to track it down successfully

    kind regards,

    Stephan

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi Stephan,

    Thanks for the bug report. This problem will be fixed in the next release. Please let me know if you'd like a temporary workaround.

    Take care,
    - Mark

  3. #3
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172
    Hi Mark!

    Please let me know if you'd like a temporary workaround.
    Sure would I like to get the patch
    btw: Do you already have a (approximate) date for the next release?

    regs,

    Stephan

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Originally posted by stephan
    Sure would I like to get the patch
    Edit the file src/Ice/Service.cpp and modify the ctrlCHandlerCallback function as shown below:
    Code:
    static void
    ctrlCHandlerCallback(int sig)
    {
    #ifdef _WIN32
        if(sig == CTRL_LOGOFF_EVENT)
        {
            return;
        }
    #endif
        Ice::Service* service = Ice::Service::instance();
        assert(service != 0);
        service->handleInterrupt(sig);
    }
    Note that this is only a temporary workaround, as it only applies to Windows and always ignores CTRL_LOGOFF_EVENT. We will provide a better solution in the next release.

    btw: Do you already have a (approximate) date for the next release?
    No, we haven't set a target date yet.

    Take care,
    - Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error when stopping an Ice-based Windows service
    By dwolfe5272 in forum Help Center
    Replies: 14
    Last Post: 06-30-2005, 03:45 PM
  2. Service implementation comment
    By stephan in forum Comments
    Replies: 2
    Last Post: 03-30-2004, 01:27 AM
  3. Questions on the service implementation in Ice 1.3
    By stephan in forum Help Center
    Replies: 7
    Last Post: 03-09-2004, 04:21 PM
  4. Icebox Freeze service error
    By xdm in forum Help Center
    Replies: 1
    Last Post: 03-07-2004, 10:19 AM
  5. C# implementation issues?
    By vukicevic in forum Comments
    Replies: 5
    Last Post: 02-11-2004, 03:46 PM

Posting Permissions

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