×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    151

    RLibrary.load Failed - KERN - EXEC 3 Error

    Hi All,

    I Create a Basic dynamic dll S60 2nd Edition FP1.

    Dll is created in F:\Symbian\7.0s\Series60_v21_CW\Epoc32\release\winscw\udeb\

    i am trying to load dll dynamically

    RLibrary library;
    TBuf<KMaxFileName> szSettingsDll;

    szSettingsDll.Copy(SETTINGS_DLL);

    iErr = library.Load(szSettingsDll);
    if (KErrNone != iErr)
    {
    return EFalse;
    }

    TLibraryFunction DllFun = library.Lookup(3);
    if (NULL == DllFun)
    {
    library.Close();
    return EFalse;
    }

    this is giving me panic KERN EXEC -3 on emulator.

    Can you please solve this problem.


    Regards,
    Swapnil

  2. #2
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    71

    Re: RLibrary.load Failed - KERN - EXEC 3 Error

    Are reason you have your entry point as the 3rd function? Its conventional to use the 1st. What is this function?

    But why are you trying to explicity load it dynamically yourself anyway?
    If its a regular DLL then no need to load it at all, if its a polymorphic dll then why not use ECom?

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    151

    Re: RLibrary.load Failed - KERN - EXEC 3 Error

    I created the dll using basic dymanic dll project.

    dll is used to write and read data from file.

    Please help me to solve this problem

  4. #4
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    71

    Re: RLibrary.load Failed - KERN - EXEC 3 Error

    I repeat my question, why bother to dynamically load it in the first place? WHat is the point?

    WHy not just let the OS load it for you? You create a DLL, link to it, run yoru code, everything is done for you, no need to load it. Why *must* you load it explicitly yourself?

    And why ask for help but then not answer any of the questions about the 3rd entry point?

  5. #5
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    71

    Re: RLibrary.load Failed - KERN - EXEC 3 Error

    If you don't dynamically load the DLL yourself, because there is no need to, then your problem will go away. That is why I was being foreceful in this point in asking why you needed to explicitly load it yourself.
    Last edited by NiuNiu11; 2009-03-26 at 18:58.

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. Kern Exec :0 error..?
    By remesh in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-01-08, 10:06
  3. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  4. compilation error: identifier redeclared
    By netra in forum Symbian
    Replies: 2
    Last Post: 2007-06-22, 10:42
  5. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41

Posting Permissions

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