×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Load a dll in symbian

    Hi all,

    I'm writing an application and some dll file. They were installed on the phone but I cannot launch the application, in fact, it was launched but it was terminated immediately. I think that the problem is the system cannot load the dll file or cannot find the dll file. I tried to put all exe and dll in the same directory in 2 cases: sys/bin/ and create my own folder on c:/myapp/

    Does anyone know how to debug this bug?

    Thanks,
    ___________________________
    http://AndroidCore.com

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    Assuming an S60 3rd or 5th edition device, \sys\bin is the only place where the OS checks for binary executables (like .dll and .exe).
    Enable the error messages: http://wiki.forum.nokia.com/index.ph...ded_panic_code

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Quote Originally Posted by wizard_hu_ View Post
    Assuming an S60 3rd or 5th edition device, \sys\bin is the only place where the OS checks for binary executables (like .dll and .exe).
    Enable the error messages: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    Thanks for the link, I'm going to read it.

    But in the debug mode (i'm using TRK), they cannot be copied to sys/bin, I got permission error.

    Thanks,
    ___________________________
    http://AndroidCore.com

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    Starting from S60 3rd edition, everything has to be installed, simple copying does not work (actually you can copy files to \sys\bin of the memory card in USB Mass Storage mode, just those files are going to be rejected by the OS when you attempt to launch them).

  5. #5
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Hi,

    Your link is talking about debug on emulator, but I'm debuging on phone.

    Symbian only load the dll from sys/bin, but in debug mode we cannot copy file to sys/bin. So I don't know how to debug
    ___________________________
    http://AndroidCore.com

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    Quote Originally Posted by gacon View Post
    Your link is talking about debug on emulator, but I'm debuging on phone.
    Try once more, read the "Note!" for example.
    Symbian only load the dll from sys/bin, but in debug mode we cannot copy file to sys/bin. So I don't know how to debug
    You have to add the given .dll files to your .pkg, and install it (if you do not alter its default settings, Carbide.c++ installs your .sisx when you are debugging).

  7. #7
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Quote Originally Posted by wizard_hu_ View Post
    Try once more, read the "Note!" for example.You have to add the given .dll files to your .pkg, and install it (if you do not alter its default settings, Carbide.c++ installs your .sisx when you are debugging).
    Thanks for your helpful information. Now I'm having some good news, at least I can see the panic code :P.

    - I made a debug version and install my application (so all files should be copy to c:\sys\bin\).
    - I installed YBrowser and FExplorer but I cannot create a file (I tried to create a new one and copy from outside) ErrRd in c:\resource\. I got a error message, I think that was a permission error.
    - I installed Y-Tasks and Panic Observer, now I can see in the log, the panic is "Kill: -1". I don't know what does it mean. I'm trying so search.

    Thanks for your help,
    ___________________________
    http://AndroidCore.com

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    Negative numbers are Symbian error codes, http://wiki.forum.nokia.com/index.php/Error_codes
    Something is missing. For example your .dll can be such thing (it is still not clear if you install it or what), but data files, images, etc. can be missing too.

  9. #9
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Quote Originally Posted by wizard_hu_ View Post
    Negative numbers are Symbian error codes, http://wiki.forum.nokia.com/index.php/Error_codes
    Something is missing. For example your .dll can be such thing (it is still not clear if you install it or what), but data files, images, etc. can be missing too.
    Is there any way to know what I'm missing? Because I am not sure which file I'm missing.

    Thanks,
    ___________________________
    http://AndroidCore.com

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    Unfortunately no. The logfile of the emulator contains these details, but the device has no such logfile.

  11. #11
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Load a dll in symbian

    What phone model do you use for testing?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  12. #12
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Quote Originally Posted by ltomuta View Post
    What phone model do you use for testing?
    Hi,

    I'm using Nokia N95, model 8GB black
    ___________________________
    http://AndroidCore.com

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    I guess Lucian's question may continue in a suggestion about making sure that you have actually installed the OpenC/C++ runtime libraries on your device (the .sis files in C:\Symbian\9.2\S60_3rd_FP1\nokia_plugin\openc\s60opencsis and C:\Symbian\9.2\S60_3rd_FP1\nokia_plugin\opencpp\s60opencppsis - you might not need all of them, but PIPS_xy.sis is certainly necessary to do anything OpenC/C++, and STDCPP_xy.sis if you use STL for example).

  14. #14
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: Load a dll in symbian

    Quote Originally Posted by wizard_hu_ View Post
    I guess Lucian's question may continue in a suggestion about making sure that you have actually installed the OpenC/C++ runtime libraries on your device (the .sis files in C:\Symbian\9.2\S60_3rd_FP1\nokia_plugin\openc\s60opencsis and C:\Symbian\9.2\S60_3rd_FP1\nokia_plugin\opencpp\s60opencppsis - you might not need all of them, but PIPS_xy.sis is certainly necessary to do anything OpenC/C++, and STDCPP_xy.sis if you use STL for example).
    sorry, but I don't understand what do you mean
    ___________________________
    http://AndroidCore.com

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Load a dll in symbian

    You have a thread in the OpenC/C++ boards too (http://discussion.forum.nokia.com/fo...d.php?t=200976), is this thread+question related to that one?

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. [moved] why i can not load DLL on Nokia N73
    By sean_bean in forum Symbian
    Replies: 3
    Last Post: 2009-03-06, 14:47
  3. Replies: 8
    Last Post: 2009-01-20, 13:47
  4. Porint ANSI C static dll to symbian static dll
    By xhsoldier in forum Symbian
    Replies: 6
    Last Post: 2007-02-27, 08:19
  5. Replies: 0
    Last Post: 2004-05-07, 11:45

Posting Permissions

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