using CORBA_exception_free on memory taken in stack?
- From: "surendra singh" <cse surendra gmail com>
- To: orbit-list gnome org
- Subject: using CORBA_exception_free on memory taken in stack?
- Date: Sat, 1 Apr 2006 12:27:25 +0530
hi,
i am new to orbit2.i have recently started using it to build my corba application.
i was going through the code given on the orbit official website 'echo client and echo server'
have a look at first function :
static void
abort_if_exception(CORBA_Environment *ev, const char* mesg)
{
if (raised_exception (ev)) {
g_error ("%s %s", mesg, CORBA_exception_id (ev));
CORBA_exception_free (ev);
abort();
}
}
this is using CORBA_exception_free(ev) ... but when it is called the ev points to the memory taken on stack
CORBA_Environment local_ev[1];
.......
abort_if_exception (local_ev, "caught exception");
Is it safe to use it this way? If it is then what the function CORBA_exception_free is doing ?.
thanks,
surendra.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]