<?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 - Problem with active object - CTimer - SetActive() - Comments</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive</link>
 <description>Comments for &quot;Problem with active object - CTimer - SetActive()&quot;</description>
 <language>en</language>
<item>
 <title>Re: Problem with active object - CTimer - SetActive()</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive#comment-41795</link>
 <description>&lt;p&gt;Thanx sysctl-forum&lt;/p&gt;

&lt;p&gt;i have removed SetActive() and now everything works fine!&lt;/p&gt;

&lt;p&gt;bye&lt;/p&gt;</description>
 <pubDate>Tue, 25 Sep 2007 11:45:23 +0200</pubDate>
 <dc:creator>talentovanolenj</dc:creator>
 <guid isPermaLink="false">comment 41795 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem with active object - CTimer - SetActive()</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive#comment-41720</link>
 <description>&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
 After(timeout_interval) ;

SetActive() ; // mega-crash but why???
&lt;/pre&gt;&lt;br /&gt;
I bet it is a &lt;span style=&quot;font-weight:bold&quot;&gt;E32USER-CBase 42&lt;/span&gt; panic. &lt;span style=&quot;font-weight:bold&quot;&gt;SetActive()&lt;/span&gt; was already called in &lt;span style=&quot;font-weight:bold&quot;&gt;CTimer::After(...)&lt;/span&gt;.&lt;/p&gt;</description>
 <pubDate>Sat, 22 Sep 2007 06:30:57 +0200</pubDate>
 <dc:creator>sysctl-forum</dc:creator>
 <guid isPermaLink="false">comment 41720 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem with active object - CTimer - SetActive()</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive#comment-41678</link>
 <description>&lt;p&gt;Read the documentation for CTimer, it says you have to provide an implementation of RunL(), where is it?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 18:55:27 +0200</pubDate>
 <dc:creator>Fructose</dc:creator>
 <guid isPermaLink="false">comment 41678 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem with active object - CTimer - SetActive()</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive#comment-41671</link>
 <description>&lt;p&gt;I think you should understand the basics of the Active Shecduler (AS) first. Hope there are plenty of articles available from NewLC tutorials and Forum Nokia Wiki, just do a search. Before calling SetActve you should call an asynchronous function where in which you should pass the iStatus (which is an object of CActive a TRequestStust type).&lt;/p&gt;

&lt;p&gt;The next thing is you&#039;ve some misconception on CounstructL(). A part of code in ConstructL() should be moved to the NewL()/NewLC() function. AFAIK your ConstructL() can&#039;t return any value, you can call any of the leaving functions inside it. Search for Two-Phase construction and CleanupStack. Another observation is that you&#039;ve not followed the Symbian naming conventions properly.&lt;/p&gt;

&lt;p&gt;I would recommend you to check any of the implementation of CTimer with SDK Help to get know more about it.&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 15:55:06 +0200</pubDate>
 <dc:creator>vin2ktalks</dc:creator>
 <guid isPermaLink="false">comment 41671 at http://www.newlc.com</guid>
</item>
<item>
 <title>Problem with active object - CTimer - SetActive()</title>
 <link>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I want to make this timer work but it crashes on SetActive() command.&lt;/p&gt;

&lt;p&gt;Class symbian_timer_helper is derived from : public CTimer. It crashes but does not even run RunL() command of CTimer! It does not even start the timer if I remove SetActive().&lt;/p&gt;

&lt;p&gt;Here is the code:&lt;/p&gt;

&lt;p&gt;    void symbian_timer_helper::base_constructL()&lt;br /&gt;
    {&lt;br /&gt;
      CTimer::ConstructL() ;&lt;br /&gt;
    }&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/problem-active-object-ctimer-setactive#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Thu, 20 Sep 2007 14:45:33 +0200</pubDate>
 <dc:creator>talentovanolenj</dc:creator>
 <guid isPermaLink="false">19033 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
