Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-17-2008
mpugach mpugach is offline
Registered User
 
Name: Michael Pugach
Organization: StrategyRunner
Project: StrategyRunner
 
Join Date: Aug 2006
Posts: 3
IceGrid: using Windows network drives

Ice: Ice-3.2.1 for C++
OS: Windows XP
Compiler: VS 2005

I'm trying to install IceGridNode/Registry as a Windows Service putting data directory on a Windows network drive. When Windows starts a service it does not use network drive letters defined for a Windows account. The only way to define Grid’s data directory is to use shared resource name (\\server name\share name\directory name). Currently Ice 3.2.1 for C++ does not support that. In order to make it work I did two fixes. The second fix is intended for IceBox activated by Grid.

1. File: Ice-3.2.1/src/IcePatch2/Util.cpp
Function: string IcePatch2::simplify(const string& path)
Line: 280

Change

#ifdef _WIN32
for(pos = 0; pos < result.size(); ++pos)
{
if(result[pos] == '\\')
{
result[pos] = '/';
}
}
#endif

to

#ifdef _WIN32
// In case of network drive skip first two backslashes
if(result.find("\\\\") != string::npos)
{
pos = 2;
}
else
{
pos = 0;
}

for(; pos < result.size(); ++pos)
{
if(result[pos] == '\\')
{
result[pos] = '/';
}
}
#endif

2. File: Ice-3.2.1/src/IceUtil/options.cpp
Function: IceUtil::Options::StringVector IceUtil::Options::split(const string& line)
Line: 323

Change

case '"':
case '\\':
case '\n':
{
arg.push_back(c);
break;
}

to

case '"':
case '\\':
case '\n':
{
arg.push_back(c);
#ifdef WIN32
// Add a second backslash for network drive in Windows
if (c == '\\')
{
arg.push_back(c);
}
#endif
break;
}
__________________
Michael Pugach
Strategy Runner Ltd.
www.strategyrunner.com
Reply With Quote
  #2 (permalink)  
Old 02-18-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,535
Hi Michael,

Thanks for the bug report, we'll look into this.

Cheers,
Benoit.
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
IceGrid Registry - can this be run as a Windows Service? amercieca Help Center 4 10-09-2007 10:32 AM
Problem using icegrid as windows service Vivien Delage Help Center 2 08-22-2007 10:45 AM
Network Spy hotlips Help Center 1 03-07-2007 12:10 PM
How to use a new network ? mykael Help Center 2 08-07-2006 06:45 AM
Network is unreachable mykael Help Center 8 06-23-2006 03:37 AM


All times are GMT -4. The time now is 08:47 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.