Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2007
bwvb bwvb is offline
Registered User
 
Name: Bertwim van Beest
Organization: myself
Project: Concurrent processing of images
 
Join Date: Jul 2007
Posts: 8
Allocate/Release in session?

Hi,

The Session interface gives two methods of allocating objects:

a) allocateObjectByType( string type ) and
b) allocateObjectByID( Ice::Identity id )

There is only one method to release an allocated object:
releaseObject( Ice::Identity id ); If I have allocated an object using approach b), there is a method to release it. But how do I release an object that was alloated by type (and for which I don't have it;s identidy).

Regards,
Bertwim
Reply With Quote
  #2 (permalink)  
Old 07-03-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Welcome to our forums!

You can get the identity of the allocated object by calling ice_getIdentity() on the proxy returned from allocateObjectByType().
Reply With Quote
  #3 (permalink)  
Old 07-03-2007
bwvb bwvb is offline
Registered User
 
Name: Bertwim van Beest
Organization: myself
Project: Concurrent processing of images
 
Join Date: Jul 2007
Posts: 8
Ah, of course!
Thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Per session context xdm Help Center 1 05-23-2007 04:52 AM
Glacier2 session expiration Nis Baggesen Help Center 10 03-21-2006 08:05 AM
Session creation/destruction bartley Help Center 4 03-17-2006 11:50 AM
Session dashie Help Center 3 02-19-2006 10:40 PM
How to use session? Dmitriy Help Center 2 06-18-2004 10:22 AM


All times are GMT -4. The time now is 11:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.