Problems with non XML documents

I need to insert a list of images into tamino. I’m using API for NET. I’ve found a problem: when two images are inserted,
the next database access fails for timeout. The problem happens with remote database, and doesn’t happen if I run the aplication
in a local database.
I’ve done this test aplication as an example:


TaminoDocument* inoDoc;
TaminoCommand* inoCommand;
TaminoResponse* inoResp;

String* dbUri = new String (“http://vcr003:80/tamino/Test”);
TaminoConnection* m_Tamino;
m_Tamino = new TaminoConnection(dbUri);

FileStream* fs;
fs = new FileStream(S"c:\1.jpg", FileMode::Open);


//insert image “1”
m_Tamino->Open(TaminoConnectionMode::AutoCommit);
inoDoc = new TaminoDocument(S"1", “Image”, fs, “image/jpeg”);
inoCommand = m_Tamino->CreateCommand(S"MyCol");
inoResp = inoCommand->Insert(inoDoc);
m_Tamino->Close();
fs->Close();

//insert image “2”
fs = new FileStream(S"c:\1.jpg", FileMode::Open);
m_Tamino->Open(TaminoConnectionMode::AutoCommit);
inoDoc = new TaminoDocument(S"2", “Image”, fs, “image/jpeg”);
inoCommand = m_Tamino->CreateCommand(S"MyCol");
inoResp = inoCommand->Insert(inoDoc);
m_Tamino->Close();
fs->Close();

//insert image “3”
fs = new FileStream(S"c:\1.jpg", FileMode::Open);
m_Tamino->Open(TaminoConnectionMode::AutoCommit);
inoDoc = new TaminoDocument(S"3", “Image”, fs, “image/jpeg”);
inoCommand = m_Tamino->CreateCommand(S"MyCol");
inoResp = inoCommand->Insert(inoDoc);
m_Tamino->Close();
fs->Close();


Images “1” and “2” are correctly inserted into database but I recieve the operation timeout message when I try insert the “3”.
Any kind of remote database access fails after I insert two nonXML documents
Thanks

This sounds very similar to this problem http://tamino.forums.softwareag.com/viewtopic.php?p=7036

I downloaded version 4.1.5 of API and it doesn’t work well too. Should it ?
Now I try to contact
with customer support
thanks for all

hi.

This sounds like a problem i have encountered too. The way i solved it was by raising the ServicePointManager.DefaultConnectionLimit and lowering the ServicePointManager.MaxServicePointIdleTime depending on how many accesses you want to be able to make.