Viktor Kerkez
2008-02-26 22:46:50 UTC
I have a CORBA server and a CORBA application which sets a callback
object on the server (server has a SetCallback function). Callback has
only one function - OnEvent. When something happens on the server it
will call the OnEvent function with appropriate message.
Problem begins when the application shuts down. If the server tries to
call OnEvent two things can happen:
1. If the servers calls OnEvent in the main thread it blocks forever. I
tried to set all the corba timeouts but non of them works.
2. If I start a new thread for calling OnEvent function the server
crashes without exception (segmentation).
Does anyone have any suggestion what should I try?
Thank You in advance,
Viktor Kerkez
object on the server (server has a SetCallback function). Callback has
only one function - OnEvent. When something happens on the server it
will call the OnEvent function with appropriate message.
Problem begins when the application shuts down. If the server tries to
call OnEvent two things can happen:
1. If the servers calls OnEvent in the main thread it blocks forever. I
tried to set all the corba timeouts but non of them works.
2. If I start a new thread for calling OnEvent function the server
crashes without exception (segmentation).
Does anyone have any suggestion what should I try?
Thank You in advance,
Viktor Kerkez