|
Posted by anujshailgupt@gmail.com on March 12, 2007, 6:38 am
Please log in for more thread options > Hi Anuj,
>
> I will try to re create the scenario and post my findings here.
> Meanwhile you can try another approach,have a process running in background
> which checks if your process is running.If and when it is killed by task
> manager it can do the necessary cleanup.
> --
> Thanks and Regards
> Amit Ranjan
> blog:http://amitranjan.wordpress.com
>
>
>
> "anujshailg...@gmail.com" wrote:
> > On Mar 12, 11:33 am, "anujshailg...@gmail.com"
> > > On Mar 12, 10:45 am, "anujshailg...@gmail.com"
>
>
> > > > > Hi,
>
> > > > > when you kill a process through task manager..TerminateProcess is
executed.
> > > > > this is not a nice way to kill a process as no notification is sent to
the
> > > > > process and it is not given any time to do cleanup.
>
> > > > > --
> > > > > Thanks and Regards
> > > > > Amit Ranjan
> > > > > blog:http://amitranjan.wordpress.com
>
> > > > > "anujshailg...@gmail.com" wrote:
> > > > > > On Mar 9, 10:16 am, ankita.man...@gmail.com wrote:
> > > > > > > Hello everyone!!
> > > > > > > I am working on WM 6.0. I am running a process from my application
and
> > > > > > > then I am killing the application through Task manager. But when I
> > > > > > > launch my application again the process remains in the background
and
> > > > > > > shows a reflection.What may be the problem? Any idea. Also which
> > > > > > > message is generated when we kill an application through task
> > > > > > > manager. Any help is welcome.Thanks in advance.
>
> > > > > > Hi evvery one ...
> > > > > > i am also having thesame problem....
> > > > > > I am poritng an application from WM 5.0 to WM 6.0.
> > > > > > When I am running a process( media player) from my application and
> > > > > > then I kill the application through Task manager. But when I
> > > > > > launch my application again the process(meida player) remains in the
> > > > > > background and
> > > > > > shows a reflection.What may be the problem? Any idea....
>
> > > > > > i would also like to ask which
> > > > > > message is generated when we kill an application through task
> > > > > > manager as it would be of great help....
>
> > > > > > Any help is welcome....
>
> > > > > > Anuj- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > hello amit ..... thnx for the precious knowledge....
> > > > in my application if the application is killed from taskmanager ...it
> > > > shows an image ofthe media player momentorily if the media player was
> > > > used by the application earlier.....
>
> > > > how can i get rid of this ... the application gonna be killed from
> > > > taskmanager atleast in some cases...- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > hey amit ... i am using CreateInstance to launch the mediaplayer
> > > insted of Createprocess....
> > > so even in this case will the terminateprocess be called when i kill
> > > the process from taskmanager ???
>
> > > i am checking for any previous instances of the media player also...
>
> > > Anuj- Hide quoted text -
>
> > > - Show quoted text -
>
> > yea amit u got it absolutely right ....
>
> > our applications starts->loads WMP->application killed by task manager-
> > >WMP
> > is still running ( m not sure as song is not playing)
> > our application restarts-> whn i go to home screen-> WMP image is
> > shown momentarily -> comes to home screen...- Hide quoted text -
>
> - Show quoted text -
sure amit ....
|