[omniORB] Exception problem
Leandro Fanzone
leandro@hasar.com
Mon, 23 Jul 2001 09:28:10 -0300
This is a multi-part message in MIME format.
--------------DD95BC1980BF333544CFF0AB
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I'm using omniORB 3.0.4 on a RH 7.1 Linux box, with gcc 3.0. When I have
a method that throws an exception, and on the client side I catch it, I
can do it only five times before it hangs. I can reproduce the problem
modifying slightly the echo example:
interface Echo
{
exception E{};
string echoString(in string mesg) raises(E);
};
In the server side:
char* Echo_i::echoString(const char* mesg)
{
throw Echo::E();
}
In the client side:
for (unsigned i = 0; i < 10; i++)
try
{
CORBA::String_var dest = e->echoString(src);
}
catch(Echo::E)
{
cout << "Catch " << i << endl;
}
The output is as follows:
Catch 0
Catch 1
Catch 2
Catch 3
Catch 4
and then the program hangs in the next call. It doesn't abort, it is
just waiting. I attach the complete sample files (they are exactly the
echo example with the modified lines above) because they have no
important weight.
I wait anxiously for your answer; please tell me whether I'm doing
something wrong or is just a compiler problem.
Thank you for your help,
Leandro Fanzone
Compañía Hasar
Buenos Aires
Argentina
--------------DD95BC1980BF333544CFF0AB
Content-Type: application/x-zip-compressed;
name="throwtest.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="throwtest.zip"
UEsDBBQAAgAIAO578ip83b+sQAAAAEsAAAALAAAAR05VbWFrZWZpbGXjCvEPsNXT04chLufQ
oCBXvxDb4qJk/dSKxNyCnNRi/dTkjHyuzLzknNKUVAUVDaAeTf3k/Ly0zHQopZebzQUAUEsD
BBQAAgAIAKN88iqOlj4z+AIAAEUHAAAKAAAAZWcyX2NsdC5jY61UXU/bMBR9bn7FWSZtCdAA
5S1Ap61iGtImJNieEKqM6yRmiV3ZThna+O+7jlNaYN14WJQv2/ece8+9197dhShHU167jHMM
8bWSFnS7SsDq1nABrmcCuoD4wZp5LTBCa8UMUmFSsbkTBqNodxePrvgr4T8wK7mNPdbT6UbJ
s/MPHm1QtnImMsI9g65HwGsplMvg2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