Container address
885512Sep 25 2011 — edited Oct 29 2011Hello,
Thank you for reading my post.
I am testing this very short following code:
==================================================
#include <iostream>
using namespace std;
#include "DbXml.hpp"
using namespace DbXml;
int main(void)
{
try
{
XmlManager myManager;
XmlContainer myContainer =
myManager.createContainer("/export/xml/myContainer.bdbxml");
XmlContainer myContainer2 =
myManager.openContainer("/export/xml/myContainer.bdbxml");
}
catch (XmlException &xe)
{
cout << "XmlException = " << xe.what() << endl;
}
catch (std::exception &e)
{
cout << "Exception = " << e.what() << endl;
}
system("PAUSE");
return 0;
}
==================================================
It fails throwing the following exception:
==================================================
XmlException = Error: Bad address
==================================================
What are the "createContainer()" and "openContainer()" methods expecting as their input parameter?
I've tried names like:
C:\blabla1\blabla2\myContainer.bdbxml
but it doesn't work either.
Can you help me?
Sincerely,
--
Léa