Results 1 to 2 of 2

Thread: can stringToProxy return nil pointer?

  1. #1
    andhow is offline Registered User
    Join Date
    Jan 2005
    Posts
    16

    can stringToProxy return nil pointer?

    It looks like exceptions get thrown when this function doesn't work. Is there any situation where an exception would not get thrown, however the function returns a nil pointer?

    i.e. is this accurate?
    Code:
    ObjectPrx base = communicator()->stringToProxy("...");
    assert(base);
    Thank you

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    It would return null if you pass it an empty string, i.e., the string representation of a null proxy is an empty string.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 08-21-2009, 04:30 PM
  2. stringToProxy takes excessively long to return
    By astyler in forum Help Center
    Replies: 3
    Last Post: 07-08-2008, 03:34 PM
  3. Bad Allocation on stringToProxy?
    By litghost in forum Help Center
    Replies: 5
    Last Post: 03-04-2007, 01:43 PM
  4. Pointer problems
    By Nis Baggesen in forum Help Center
    Replies: 2
    Last Post: 06-06-2005, 03:44 AM
  5. About the smart pointer.
    By level in forum Help Center
    Replies: 11
    Last Post: 08-04-2004, 08:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •