Archived
This forum has been archived. Please start a new discussion on GitHub.
Icebox Visual c++ Assertion

xdm
La Coruña, Spain
in Help Center
Hello i make a ::IceBox::FreezeService this service works well under my linux system. The service compiles ok in windows with visual Studio 7.1 but when i go to start the service under windows the next assertion is sent

The start method of my service
my config file for icebox is:
[code]
IceBox.ServiceManager.Endpoints=tcp -h 192.168.0.34 -p 9998
IceBox.Service.Cms=CmsService:create
Cms.Proxy=cms:tcp -p 15000
Cms.Endpoints=tcp -p 15000
Ice.Warn.Connections=1
Ice.Trace.Network=1
Ice.Trace.Protocol=1
[code]
can any body say me why this assertion is send?

The start method of my service
void CmsServiceI::start(const std::string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args, const std::string& envName) { cout<<"name: "<<name<<endl; _adapter =communicator->createObjectAdapter(name); ObjectFactoryPtr factory = new CmsFactory(); communicator->addObjectFactory(factory,CmsServer::ice_staticId()); communicator->addObjectFactory(factory,CmsSite::ice_staticId()); CmsServerI::_evictor = Freeze::createEvictor(communicator,envName,"CmsServerDb"); _adapter->addServantLocator(CmsServerI::_evictor,"CmsServer"); Ice::Identity id=Ice::stringToIdentity("CmsServer"); id.category="CmsServer"; if (!CmsServerI::_evictor->hasObject(id)) { CmsServerPtr cms=new CmsServerI(); CmsServerI::_evictor->createObject(id,cms); } CmsServerI::_evictor->setSize(1000); _adapter->activate(); }
my config file for icebox is:
[code]
IceBox.ServiceManager.Endpoints=tcp -h 192.168.0.34 -p 9998
IceBox.Service.Cms=CmsService:create
Cms.Proxy=cms:tcp -p 15000
Cms.Endpoints=tcp -p 15000
Ice.Warn.Connections=1
Ice.Trace.Network=1
Ice.Trace.Protocol=1
[code]
can any body say me why this assertion is send?
0
Comments
-
Are you mixing code built in the debug and release configurations? If so, you should rebuild everything in one configuration. If that's not the problem, I suggest trying to isolate the fault by commenting out code in your start function until the problem goes away. If you're still having trouble, we would need a complete example that we could compile and try ourselves.
Take care,
- Mark0 -
Assertion failure for mixig code
Thanks Mes.
Yes the problem is that I mixing code of debug version with release version. Sorry for my sily Question. I'not very familiariced with visual studio develop tools0