[omniORB] Application error at Exit
A.A.Gerritsen
a.a.gerritsen@phys.uu.nl
Mon, 10 Jan 2000 23:12:32 +0100
Hello,
I use VC++ 6.0 at NT 4.0 SP5 with omniORB 2.80 in a MFC app.
I use static libs and had top link as usual the dynamic lib too.
The server is a simple console application and works fine.
When I use some test-cosole clients everything works fine and terminates
normally. However my real client needs to be a MFC app. This application
works fine too, but when I exit it gives an application error saying that my
app tried to acces memory that is unreferenced.
I guess something goes wrong in a decontructor soemwhere, but I don't have a
clue where.
I call:
if ( !CORBA::is_nil(m_SrvCaller) )
CORBA::release(m_SrvCaller) ;
m_theORB->NP_destroy() ;
which executes fine, and after that there shouldn't be any references
anymore to CORBA objects. Because all objects are created on the fly and
destroyed at the end of each function, for every object created the
deconsructor should be called already and when I check is indeed called
already.
Still it gives the error. Some debugging showed that somewhere in teh
omniORB's caused the errors. Before I start debugging some more an go deeper
into all the code I was wondering if there are any standard things or tips I
should know about?
Best regards,
Armin Gerritsen
-
"What really interests me is whether God had any choice in the creation of
the world."
- Albert Einstein