|
|
|
|||||
|
Documentation re: stack-allocated servants
Version 1.0.2 of the Ice documentation states in "10.7.1 Instantiating a Servant":
"Instantiating a servant means to allocate an instance, either on the stack or on the heap. Most commonly, servants are instantiated on the heap because we want the servant instance to endure beyond the duration of the current stack frame:" This is rather misleading in practical terms in the light of the section, "Stack-Allocated Class Instances" in "6.14.5 Smart Pointers for Classes" which states: "...allocating class instances on the stack is pragmatically useless because all the Ice APIs expect parameters that are smart pointers..." and goes on to demonstrate the dangers of using stack-allocated classes with smart pointers. Wouldn't it be better to state in 10.7.1 that servants *must* be allocated on the heap (as with the later CORBA specs) or provide a cross-ref to the appropriate part of 6.14.5? Or can a sensible example of stack-allocated servants be provided in the documentation? Cheers, Greg BTW, a few of the cross-references seem to be broken in 10.7.2-3 |
|
|||||
|
Quote:
You can find them all systematically by doing a search for "XREF" in the 1.0.2 .pdf file (use Acrobat Reader Edit->Find, its binoculars icon, etc.). Quite a few show up. Regards, Dan |
|
||||||
|
Quote:
Cheers, Michi. |
![]() |
| 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 |
| Proxy from Servants and vicecersa. | EmmanuelOga | Help Center | 1 | 08-02-2006 01:54 PM |
| dumpdb overflows stack | acbell | Bug Reports | 2 | 07-31-2006 12:43 PM |
| Documentation | ChrisC | Comments | 7 | 09-16-2005 09:31 AM |
| Multiple threads smashing the stack | Ric | Help Center | 8 | 06-09-2005 12:55 PM |
| Documentation for Default Servants example | andreynech | Bug Reports | 2 | 09-24-2003 07:59 AM |