|
|
|
|||||
|
Object* add(Object servant, Identity id),can the servant be static object?
Hi,
I did a test, wrote a server with Ice.3.2.0 in windows xp. Code:
static confI* Inst()
{
static confI cb;
return &cb;
};
Code:
adapter->add(confI::Inst(), communicator()->stringToIdentity("conf"));
Debug Assertion Failed! File:dbgheap.c Line:1044 Expression:_CrtIsValidHeapPointer(pUserData) When I didn't use the static object, Code:
adapter->add(new confI,communicator()->stringToIdentity("conf"));
the Object* add(Object servant, Identity id) function. can the servant be the static object? Thanks! |
|
||||||
|
Also, can you please check your private messages and get back to us?
|
![]() |
| 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 |
| object id with category can't be a template parameter? | Yunqiao Yin | Bug Reports | 1 | 06-09-2006 08:27 AM |
| How to release object. | laotee | Help Center | 12 | 08-29-2005 11:48 PM |
| how to add servant class | yanhbo | Help Center | 1 | 08-19-2005 03:47 AM |
| Object Factories and object initialisation | Nis Baggesen | Help Center | 1 | 09-30-2004 07:40 AM |
| Object Factory | enzo | Help Center | 2 | 03-17-2004 01:29 PM |