<?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 - The KERN EXEC 3 ERROR - Comments</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error</link>
 <description>Comments for &quot;The KERN EXEC 3 ERROR&quot;</description>
 <language>en</language>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41649</link>
 <description>&lt;p&gt;Eric,&lt;br /&gt;
Sorry, a KERN-EXEC panic 3 is one of the most elusive one to plug. A few things here:-&lt;br /&gt;
a) Are you really sure that this is the code fragment causes the error? Silly question but I wanted to make sure...&lt;br /&gt;
b) The code looks like a part of a loop or switch-case structure (see the &quot;break&quot;), so I really can&#039;t judge which line may cause the prob. The parantheses are not balanced.&lt;br /&gt;
c) If it is indeed a part of a loop, then you would like to go through the loop logic and see if there is anything in there that&#039;s causing the prob.&lt;br /&gt;
d) This code looks particularly fishy :-&lt;br /&gt;
&lt;code&gt;TAknsPkgID pkgId = skinInfoArray-&amp;gt;At( 0 )-&amp;gt;PID();&lt;/code&gt;&lt;br /&gt;
It would be a good idea to check what is the size of the array AND the value of pkgId if array-size &gt;= 1. It may possibly give you an out-of-bound exception or an access violation. &lt;br /&gt;
Good luck.&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 10:56:24 +0200</pubDate>
 <dc:creator>guru_k</dc:creator>
 <guid isPermaLink="false">comment 41649 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41643</link>
 <description>&lt;p&gt;when I exit the program,error happen.I debug the program,but I  can&#039;t  find which line crash.I also try to put the code in the exit even handle function .when I press the rightsoftkey,the program exit ,this time the program work well.error don&#039;t happen.when I put the code in other place ,error happen. I really how to do now?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 09:38:35 +0200</pubDate>
 <dc:creator>eric_fung</dc:creator>
 <guid isPermaLink="false">comment 41643 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41639</link>
 <description>&lt;p&gt;1st thing that u need to do is ...make log / debug, to get exactly which line is crashing .. &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;

&lt;p&gt;saur&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 08:26:21 +0200</pubDate>
 <dc:creator>suraab</dc:creator>
 <guid isPermaLink="false">comment 41639 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41630</link>
 <description>&lt;p&gt;Thanks for correcting alh.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br /&gt;
Sri&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 06:08:12 +0200</pubDate>
 <dc:creator>srikanth</dc:creator>
 <guid isPermaLink="false">comment 41630 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41628</link>
 <description>&lt;p&gt;No! &lt;br /&gt;
Kern-Exec 3 is seldom caused because of an invalid handle.&lt;/p&gt;

&lt;p&gt;Technically, it means &quot;unhandled exception&quot;, and most commonly it happens because you try to access memory areas you are not allowed to access, for example by trying to use a pointer that is NULL.&lt;/p&gt;

&lt;p&gt;An invalid handle will give you Kern-Exec 0.&lt;/p&gt;

&lt;p&gt;The call stack trick sirkanth meantions hasn&#039;t worked for me in public SDKs, only in partner or licensee baselines unfortunately... Though I don&#039;t know how Carbide handles it...&lt;br /&gt;
You can also put a breakpoint in the function, and step line by line, and find which line gives you the panic.&lt;/p&gt;</description>
 <pubDate>Wed, 19 Sep 2007 16:33:04 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41628 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error#comment-41609</link>
 <description>&lt;p&gt;KERN EXEC 3 is a common panic in Symbian happens mostly because of invalid handle. Check out which is the statement whcih is panking.  If you dont know how, run in debug mode and see the last function in your code executed from the call stack when panic is raised.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br /&gt;
Sri&lt;/p&gt;</description>
 <pubDate>Wed, 19 Sep 2007 11:31:31 +0200</pubDate>
 <dc:creator>srikanth</dc:creator>
 <guid isPermaLink="false">comment 41609 at http://www.newlc.com</guid>
</item>
<item>
 <title>The KERN EXEC 3 ERROR</title>
 <link>http://www.newlc.com/forum/kern-exec-3-error</link>
 <description>&lt;p&gt;HI,ALL:&lt;/p&gt;

&lt;p&gt;MY code cause the  KERN EXEC 3 error.My code is show below:&lt;/p&gt;

&lt;p&gt;RAknsSrvSession skinsSession;&lt;br /&gt;
User::LeaveIfError( skinsSession.Connect( this ) );&lt;br /&gt;
CleanupClosePushL( skinsSession );&lt;br /&gt;
   &lt;br /&gt;
    TAknsPkgIDBuf pidBuf;            &lt;br /&gt;
    CRepository* repository = &lt;br /&gt;
                CRepository::NewL( KCRUidPersonalisation );                    &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/kern-exec-3-error&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/kern-exec-3-error#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Wed, 19 Sep 2007 11:16:49 +0200</pubDate>
 <dc:creator>eric_fung</dc:creator>
 <guid isPermaLink="false">19014 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
