×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Mem::Copy panic kern-exec 3

    Hello everyone, I have a puzzle in the following code, It is always crash in the last sentence, Mem::Copy, I have no idea why it happen. Please help me~ Thank you```
    void TAVPacket::CopyData(const unsigned char* pData, TUint uLen)
    {
    iLen = uLen;
    iData = new unsigned char[iLen];

    // assert(iData > pData);
    Mem::Copy(iData, pData, iLen);
    }

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    113

    Re: Mem::Copy panic kern-exec 3

    check your pData

    place an condition if(!pData)
    {
    // then do rest of your coding
    Mem::Copy(iData, pData, iLen);
    }

    Hope it will help
    Regards
    MKS

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Mem::Copy panic kern-exec 3

    You could use new(ELeave) (or at least check iData), that allocation does not necessarily succeed.

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Re: Mem::Copy panic kern-exec 3

    Thank you all, I think I found the problem, I didn't check the iData and pData. Let me test. Thank you very much!

Similar Threads

  1. [copy] App exits throwing KERN-EXEC 3
    By anuprojekar in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2010-04-29, 04:26
  2. KERN EXEC 3 PANIC
    By s.baalajee in forum Symbian
    Replies: 5
    Last Post: 2010-04-12, 14:47
  3. Replies: 4
    Last Post: 2010-02-28, 02:33
  4. getting panic KERN - EXEC 3
    By rohitnegi in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-02-22, 11:01
  5. KERN-EXEC Panic
    By nair.shanker in forum Symbian
    Replies: 6
    Last Post: 2008-10-15, 11:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×