I have config IceGrid as windows service with icepatch2.
It is throws exception when we use icegrid patchs application,
after check code,I found error cause when invoke OS::mkdir(path) and
path is root,so I add a condition . It's works fine
icepatch2 util.cpp
void
IcePatch2::createDirectoryRecursive(const string& pa)
{
const string path = simplify(pa);
string dir = getDirname(path);
if(!dir.empty())
{
createDirectoryRecursive(dir);
}
if(!isRoot(path+"/"))//add this condision
![]()
{
if(OS::mkdir(path, 0777) == -1)
{
if(errno != EEXIST)
{
throw "cannot create directory `" + path + "':\n" + lastError();
}
}
}
}

//add this condision
Reply With Quote