[omniORB] VS .NET and memory leaks (again).

Duncan Grisby duncan at grisby.org
Fri Jul 23 17:16:57 BST 2004


On Monday 19 July, "Frederic Prin" wrote:

> First you do not have to call run(). omniORB spawn its own thread to
> handle incomming Corba call.
> Run() is only usefull if your program needs to be blocked in a loop in
> case of it doen't have another loop (gui for example)
> 
> In your case, it seems you have a GUI loop. So just don't call the run()
> method.
> But, on your WM_CLOSE handler code, call destroy() and
> orb->shutdown(true) before it, in order the orb shutdowns gracefully.

Further to that, if you don't call orb->destroy(), you will definitely
see a huge number of memory leaks on exit.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list