<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - P800 : Is multitasking possible? - Comments</title>
 <link>http://www.newlc.com/topic-873</link>
 <description>Comments for &quot;P800 : Is multitasking possible?&quot;</description>
 <language>en</language>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5443</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanx!!&lt;br /&gt;IÂ´ve already had downloaded this example... in fact, I prettry much got inspired by it ;o)&lt;br /&gt;&lt;br /&gt;I was thinking that in my case it would be different because there is no UI... I will take a better look at the code of SmallServ&lt;/div&gt;</description>
 <pubDate>Wed, 07 Jul 2004 13:51:38 +0200</pubDate>
 <dc:creator>amattiuz</dc:creator>
 <guid isPermaLink="false">comment 5443 at http://www.newlc.com</guid>
</item>
<item>
 <title>Yes, use the recogniser hack</title>
 <link>http://www.newlc.com/topic-873#comment-5442</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;If you start your server using the ugly recogniser thing, there&amp;#039;s no reason why it should ever exit.&lt;br /&gt;&lt;br /&gt;There&amp;#039;s an HTTP server at&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http&amp;#58;//www.symbian.com/developer/techlib/staffapps.html&quot; target=&quot;_blank&quot;&gt;http://www.symbian.com/developer/techlib/staffapps.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you really want to run a server indefinitely, be really careful about memory leaks, polling, and other evil things. Obviously &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;[/url]&lt;/div&gt;</description>
 <pubDate>Wed, 07 Jul 2004 00:08:16 +0200</pubDate>
 <dc:creator>streetmentioner</dc:creator>
 <guid isPermaLink="false">comment 5442 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5441</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;well, I canÂ´t make my server run at sturt up?&lt;br /&gt;&lt;br /&gt;what about using this Recognizer??? is it possible?&lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/huh.gif&quot; alt=&quot;Huh&quot; border=&quot;0&quot; /&gt;?&lt;/div&gt;</description>
 <pubDate>Tue, 06 Jul 2004 21:55:41 +0200</pubDate>
 <dc:creator>amattiuz</dc:creator>
 <guid isPermaLink="false">comment 5441 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5440</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I don&#039;t think you can make your server run forever - of course there are servers that run forever on Symbian devices but they are specified by the device manufacturer and get started at boot up.&lt;/div&gt;</description>
 <pubDate>Tue, 06 Jul 2004 21:45:06 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 5440 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5439</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thats exactly what I need!&lt;br /&gt;I need a way to make a EXE run &amp;quot;forever&amp;quot; ;o)&lt;br /&gt;&lt;br /&gt;My exe is a kind of http server, there is no UI (I am using console for tests, but I intend to remove it) &amp;nbsp;... &amp;nbsp;but I am not using CServer... what kind of modifications should I do &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/huh.gif&quot; alt=&quot;Huh&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 06 Jul 2004 20:50:06 +0200</pubDate>
 <dc:creator>amattiuz</dc:creator>
 <guid isPermaLink="false">comment 5439 at http://www.newlc.com</guid>
</item>
<item>
 <title>To write a server...</title>
 <link>http://www.newlc.com/topic-873#comment-5438</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You need to have two MMP files, one for the client and one for the server. The server should be a subclass of CServer. The client should be a subclass of RSessionBase.&lt;br /&gt;&lt;br /&gt;To reply to a couple of other things raised in this (old) thread...&lt;br /&gt;&lt;br /&gt;1) whoever mentioned &#039;polling&#039; - don&#039;t do it. Symbian shuts down the CPU whenever nothing&#039;s happening; that&#039;s why the battery lasts so long. Anything polling will destroy that and the battery will be gone in hours.&lt;br /&gt;&lt;br /&gt;2) On UIQ (e.g. P800), to stop your *application* being shut down in the background, just override the SaveL of your CQikDocument. That gets called (with EReleaseRam) when the device wants to free up some memory, and is trying to shut you down. The default implementation is Exit(). This is not an issue for servers, since they are .exes not .apps and will not get shut down. Your server will stay running indefinitely.&lt;/div&gt;</description>
 <pubDate>Fri, 28 May 2004 23:56:44 +0200</pubDate>
 <dc:creator>streetmentioner</dc:creator>
 <guid isPermaLink="false">comment 5438 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5437</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;you need to create 2 apps, or better an application (for the UI) and a server (for the background services).&lt;br /&gt;It&#039;s not too complex.&lt;br /&gt;&lt;br /&gt;An other possibility (depends on the complexity of the background services) is to put those services inside ActiveObjects (CActive).&lt;br /&gt;&lt;br /&gt;BTW UIQ does not shut down background apps!&lt;br /&gt;It makes them run (at lower priority) in background.&lt;br /&gt;Only when RAM is running low, the system starts shutting down background apps.&lt;br /&gt;&lt;br /&gt;To set your thread as system yu have a few functions that do the work:&lt;br /&gt;CEikonEnv::SetSystem(TBool aSystem) //sets your app as system&lt;br /&gt;CApaWindowGroupName::SetSystem(TBool aSystem)//set any as system&lt;/div&gt;</description>
 <pubDate>Thu, 27 May 2004 09:11:11 +0200</pubDate>
 <dc:creator>wolfigor</dc:creator>
 <guid isPermaLink="false">comment 5437 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5436</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Andrea can you tell me the way how do i mark my application &amp;quot;System Task&amp;quot;.so that it does not closes when the system runs low in memory .&lt;br /&gt;&lt;br /&gt;second how can i make my application to register some part of functionality as a system task and the rest gUI as an app ...so that even if the GUI environment closes the system task continues ........if it is possible&lt;/div&gt;</description>
 <pubDate>Wed, 26 May 2004 10:21:57 +0200</pubDate>
 <dc:creator>siemensc55</dc:creator>
 <guid isPermaLink="false">comment 5436 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5435</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;It is possible to mark a task as a system task. It is not then closed if apps need to be closed. The apps are closed by the system only when the free memory starts to run out. Otherwise the apps are kept running. It is possible to make the app close if switched to background, but this must be explicitly programmed in the app.&lt;/div&gt;</description>
 <pubDate>Mon, 24 May 2004 12:24:11 +0200</pubDate>
 <dc:creator>Andreas</dc:creator>
 <guid isPermaLink="false">comment 5435 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5434</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;yea i will also like to know how to write a server application for symbian...&lt;/div&gt;</description>
 <pubDate>Mon, 24 May 2004 12:15:37 +0200</pubDate>
 <dc:creator>siemensc55</dc:creator>
 <guid isPermaLink="false">comment 5434 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5433</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;ThanX, hope server solves my problem.&lt;br /&gt;&lt;br /&gt;My scenario is like :&lt;br /&gt;&lt;br /&gt;2 different applications are running and they continuously talking with each other. &lt;br /&gt;1) Status polling&lt;br /&gt;2) Status updating&lt;br /&gt;3) Using status for changing respective GUI&#039;s&lt;br /&gt;&lt;br /&gt;Since 2 applications run in parallel and require status to be given to each other I am interested in multitasking.&lt;br /&gt;I can not create 2 threads in the same program as user may close the application which is not desired and hence thought of multitasking.&lt;br /&gt;&lt;br /&gt;- Sym_Pro&lt;/div&gt;</description>
 <pubDate>Fri, 28 Nov 2003 13:04:00 +0100</pubDate>
 <dc:creator>sym_pro</dc:creator>
 <guid isPermaLink="false">comment 5433 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5432</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: sym_pro&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;Actually my problem was to achieve this feature of symbian of multitasking on P800/P900 units. &lt;br /&gt;What documentation of P800 says is that the device closes the running application after new application is launched. Although the device holds the state of closed application it is not useful since the closed application is not in active state. &lt;br /&gt;&lt;br /&gt;I am not facing any probelm on series 60 devices but on UIQ. &lt;br /&gt;&lt;br /&gt;My query is specific to P800/P900.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I think you misunderstand something. There is no need to have a application running in the background, when you can have the server running. The server is the part of the application wich provides all the services that you wish to keep running. &lt;br /&gt;Why do you need multitasking?&lt;/div&gt;</description>
 <pubDate>Fri, 28 Nov 2003 10:32:17 +0100</pubDate>
 <dc:creator>DoozerII</dc:creator>
 <guid isPermaLink="false">comment 5432 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5431</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hello,&lt;br /&gt;Actually my problem was to achieve this feature of symbian of multitasking on P800/P900 units. &lt;br /&gt;What documentation of P800 says is that the device closes the running application after new application is launched. Although the device holds the state of closed application it is not useful since the closed application is not in active state. &lt;br /&gt;&lt;br /&gt;I am not facing any probelm on series 60 devices but on UIQ. &lt;br /&gt;&lt;br /&gt;My query is specific to P800/P900.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;- Sym_Pro&lt;/div&gt;</description>
 <pubDate>Fri, 28 Nov 2003 08:31:52 +0100</pubDate>
 <dc:creator>sym_pro</dc:creator>
 <guid isPermaLink="false">comment 5431 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873#comment-5430</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hey,&lt;br /&gt;&lt;br /&gt;Yeah multitasking is possible in Symbian. For an application to run in the background you&#039;d have to write a server, which then runs in the background and then write a client application that uses services offered by this server. This is the usual way multitasking is implemented on Symbian platform. Check the SDK topic on RThread and CSession for more information on this topic.&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Regards, Aljaz&lt;/div&gt;</description>
 <pubDate>Thu, 27 Nov 2003 10:48:30 +0100</pubDate>
 <dc:creator>aljaz25</dc:creator>
 <guid isPermaLink="false">comment 5430 at http://www.newlc.com</guid>
</item>
<item>
 <title>P800 : Is multitasking possible?</title>
 <link>http://www.newlc.com/topic-873</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-873&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-873#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 24 Nov 2003 10:50:09 +0100</pubDate>
 <dc:creator>sym_pro</dc:creator>
 <guid isPermaLink="false">1946 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
