+ Reply to Thread
Results 1 to 3 of 3

Thread: Scope of Session

  1. #1
    jmulerik is offline Junior Member
    Join Date
    March 28th, 2008
    Location
    Canberra
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default Scope of Session

    I was trying to use multiple instances of the same session in Conjugate Gradient Application by passing session pointer to a function. The relevant function is given below:

    double* getMMresult (double* Vector, int order,
    int tasksToSend, ConnectionPtr conPtr, SessionPtr sesPtr)

    But it goes out of limit after a particular number of iterations/instances. The error message is as follows:

    "The session is no longer available within the system. It was either already closed by the client or went out of scope."

    How can I edit the scope of a session to reuse it as I like? Or is there any real constraint?

    PS: I could solve the issue by using multiple sessions. But that does not solve the real issue.
    Jaison Mulerikkal
    DCS, ANU, Canberra
    Australia

    http://cs.anu.edu.au/~Jaison.Mulerikkal

  2. #2
    Ajith's Avatar
    Ajith is offline Symphony DE Moderator
    Join Date
    February 28th, 2008
    Location
    Markham, Ontario
    Posts
    104
    Blog Entries
    2
    Downloads
    10
    Uploads
    0

    Default

    Hi Jaison,

    The session pointer is a smart pointer object. You should be able to copy references with no issues. I need to see your code to be able to tell what the problem is.

    - Ajith

    Quote Originally Posted by jmulerik View Post
    I was trying to use multiple instances of the same session in Conjugate Gradient Application by passing session pointer to a function. The relevant function is given below:

    double* getMMresult (double* Vector, int order,
    int tasksToSend, ConnectionPtr conPtr, SessionPtr sesPtr)

    But it goes out of limit after a particular number of iterations/instances. The error message is as follows:

    "The session is no longer available within the system. It was either already closed by the client or went out of scope."

    How can I edit the scope of a session to reuse it as I like? Or is there any real constraint?

    PS: I could solve the issue by using multiple sessions. But that does not solve the real issue.

  3. #3
    jmulerik is offline Junior Member
    Join Date
    March 28th, 2008
    Location
    Canberra
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default Thanks

    That problem had been resolved.
    Jaison Mulerikkal
    DCS, ANU, Canberra
    Australia

    http://cs.anu.edu.au/~Jaison.Mulerikkal

+ Reply to Thread

Tags for this Thread

Posting Permissions

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