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
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
Aniimation dll-s are running in an other process, it is doubtful that they could do anything with your RWsSession object.
Hmm...so its not possible.
Can i use offerrawevent through a gui or console exe?
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.
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
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...
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..![]()