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

Jon B jon-omniorb at witchspace.com
Mon Jul 19 15:36:20 BST 2004


Hiya

I've seen quite a few e-mails in the list archive about memory leaks
being reported on program exit when running under Visual Studio.  I am
experiencing similar, but in my case I'm seeing dozens, if not hundreds,
of small leaks when the program terminates.

I'm using VS .NET 2002, with omniORB 4.0.3 (I rebuilt the libraries for my
compiler as suggested in the FAQ).  My program builds and works just fine,
but the splurge of warnings on exit makes me concerned that I'm doing
something wrong.

I want to be able to respond to CORBA calls, so on program startup I
create a thread which initialises the ORB and calls the 'run()' method (I
can provide the code if required).

I see that some sample code calls the 'destroy()' member to tidy things up
on exit, but as 'run()' doesn't return I don't see how I can do this.  The
program currently exits via WM_CLOSE, so the ORB gets the rug pulled out
from under it (which might very well be the cause of the problem).

Any thoughts?  Anyone experienced similar problems?

Regards,

--
Jon







More information about the omniORB-list mailing list