|
|
|
||||||
|
A small code sample would be useful to find this leak!
How did you find out that you have memory leak? Just a cerr in AImp's destructor? With reference counted objects such as the generated C++ class for the Slice A interface/class, I recommend you always use Ptr and never plain pointers, e.g.: APtr a = new AImp(); Also, if you add this servant to your adapter's servant map, the servant map will keep a reference-count until you remove this servant from the map, or you deactivate the adapter (this happens automatically when you shutdown or destroy the communicator). So don't forget to shutdown/destroy your communicator. I hope this will put you on the right track! Bernard |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| About memory leak in MFC program with Ice2.1.2 | ehero | Help Center | 1 | 07-14-2005 02:23 PM |
| Does it mean that there are memory leak problems in my program? | yrh79 | Help Center | 3 | 04-28-2005 12:08 PM |
| Proxy and memory leak | fengxb | Help Center | 2 | 11-29-2004 05:52 PM |
| Memory leak when using ice with MFC? | _orchid_ | Help Center | 9 | 12-01-2003 07:02 PM |
| With MFC, memory leak? | alwayscy1 | Help Center | 4 | 11-05-2003 09:48 PM |