Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    Hmm...so its not possible.
    Can i use offerrawevent through a gui or console exe?

  4. #4
    Registered User nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    nobody can help me?

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 chenziteng's Avatar
    Join Date
    May 2004
    Posts
    2,265
    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 nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    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 nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    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 nikhil3298's Avatar
    Join Date
    Jul 2011
    Posts
    107
    Anybody?

Similar Threads

  1. Run app and pass arguments
    By samosnokia in forum Symbian C++
    Replies: 5
    Last Post: 2009-10-07, 08:55
  2. how can i pass value pass one class to another??
    By arun09 in forum Symbian C++
    Replies: 3
    Last Post: 2009-06-26, 15:12
  3. How to pass MEM-02?
    By filio in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2007-06-12, 13:56
  4. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved