Re: Threads with esql in v7.22
Posted in 1997
Zoltan Sekeres wrote: > > Hi ! > > Currently I have a problem with > - Informix 7.22 > - SINIX/Reliant Unix 5.43, > - DCE 2.0 (SNI) > > The release notes of Informix 7.22 mention that esql is able of > producing multithreaded applications with DCE-threads version 1.03 > and higher. It does NOT mention the switch -thread to esql which > seems to be implemented in the esql-scipt. > > Anyway: I found the multithreaded Informix libraries and after a > little hacking of the esql-scipt I was able to produce a binary. > But the second called thread just says that the database is already > in use. > > Has anybody managed to write an multithreaded esql application ? > Did I miss something ? Or are the release notes just a hoax ? > (A colleague had the same problem with HP-UX 10.1 and HP-DCE 1.4) > > Thanks in advance ! > Zoltan Hello Zoltan ! Has the errormessage realy said "database" is already in use or does it say that the "connectionname" is in use ? If you use multiple connection in different threads you must assign different connectionnames to each connection. -- ------------------------------------------------------------------- Alexander Selg | e-mail: alexander.selg@siemens.at Siemens AG Austria | Tel.: +43 1 1707-45960 A-1101 Wien, Gudrunstr. 11 | Fax.: +43 1 1707-55832 -------------------------------------------------------------------