×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Question How to pass pass iWsSession

    Well i need to pass iWsSession to the animation(server) dll.
    Can anybody tell me how to do this
    without it i cant perform any task.

    without passing if i try to connect it just freezes the phone

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to pass pass iWsSession

    Aniimation dll-s are running in an other process, it is doubtful that they could do anything with your RWsSession object.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: How to pass pass iWsSession

    Hmm...so its not possible.
    Can i use offerrawevent through a gui or console exe?

  4. #4
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: How to pass pass iWsSession

    nobody can help me?

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to pass pass iWsSession

    I do not know.
    You may consider describing the functionality you are trying to implement. Then someone may come up with an idea, even with a totally different API.
    A question "How to pass iWsSession to animation dll" is precise, but restrictive. There is no space to offer alternatives, because the goal is unseen.

  6. #6
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: How to pass pass iWsSession

    Hi,

    // without passing if i try to connect it just freezes the phone

    In runtime, an anim dll is actually loaded by the Window Server, so if it tries to connect to the server (by RWsSession) then there will be a deadlock (RWsSession.Connect send a request to the server, but the server is busy with running the dll code, i.e. the server will wait forever and all the key/touch/redraw events will be blocked).

    Candidate solutions to resolve the deadlock issue:

    1) use modern IPC mechanism like Publish&Subscribe to communicate between an anim dll and other apps
    2) create a new thread in the anim dll and in theory it should be safe to use RWsSession in the new thread.

    Regards

    Ziteng Chen

  7. #7
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: How to pass pass iWsSession

    Good to hear that atleast problem is solvable..thanks a lot
    I had lost the hope
    Now talking about the idea you gave
    IPC,i do know a little abt it but not much to implement it...
    though i will try to figure if i can
    Meanwhile if you have any implementation or a similar code
    I will really appreciate it.
    I am still a newbie in symbian c++ programming...

  8. #8
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: How to pass pass iWsSession

    The RWsSession is passed as parameter to the client in animation dll
    so where should i close it?In client or main appui
    and also this publish and subscipe thing,server will be the subscriper will be notified whether window server can be connected to or not
    but who will be the publisher?
    Also how to create a new thread?

    I couldnt find answer to these things..

  9. #9
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: How to pass pass iWsSession

    Anybody?

Similar Threads

  1. Run app and pass arguments
    By samosnokia in forum Symbian
    Replies: 5
    Last Post: 2009-10-07, 08:55
  2. Replies: 3
    Last Post: 2009-06-26, 15:12
  3. Pass-Thru IP connection
    By guimel in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-12-15, 11:03

Posting Permissions

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