Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-10-2004
stephan stephan is offline
Registered User
 
Name: Stephan Stapel
Organization: Stephan Stapel
Project: BristolNG
 
Join Date: Oct 2003
Location: Essen, Germany
Posts: 169
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
Reply With Quote
  #2 (permalink)  
Old 04-13-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
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
Reply With Quote
  #3 (permalink)  
Old 04-14-2004
stephan stephan is offline
Registered User
 
Name: Stephan Stapel
Organization: Stephan Stapel
Project: BristolNG
 
Join Date: Oct 2003
Location: Essen, Germany
Posts: 169
Hi Mark!

Quote:
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
Reply With Quote
  #4 (permalink)  
Old 04-14-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Quote:
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.

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

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 07:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.