×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Client/Server strange problem on 3rd device

    Hi,

    I'm currently working on pretty simple server, so I have classic "set": 'server', 'client side dll with R classes' and a 'GUI test client'. Everything works perfectly with capabilites switched "on" on the emulator. Build for GCCE UREL targed, signing sis files - everything works nicely...

    BUT, BUT, BUT

    After I install everything on Nokia E70 phone and I click on the 'GUI test client' application icon nothing happends(no error, no dialog). Aslo nothing is in my log file - and my first log is in NewApplication() method - seems like that it was never called (application was not started?).

    WHAT I DID

    I comment all server-related code from my 'GUI test client' - and application starts working immediatelly - so I think that problem is "something" with server. So I tried to left only 1 line of the code in the whole application - namely in AppUI ConstructL() method:
    ----------------
    RDedServer svr;
    ----------------
    So RDedServer constructor only was called - and application stoped working - withe the same behaior as on the beginning... When I tried to debug it from CodeWarrior it wrotes me message "Failed to create new process"

    Where can be the problem??? What is checked by OS that it fails so quickly? Can the problem be with capabilities?

    server capability: WriteDeviceData NetworkServices
    client side dll with R classes: NONE
    GUI test client: NONE

    I'm using E70 phone and Mainteance release SDK.

    Thanks for any help - after 2days I'm totally tired...
    King regards
    STeN

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    It sounds like a UID problem or you are missing a dll.

    Also try deleting all the dll and exe files for your application before doing a full rebuild so it forces a build.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    Hi,

    thanks for reply - I double-checked everything and I don't see any problems - but I must do that today again I hate those "mysterious" bugs - it's surely something I miseed or made bad...

    But still - I'm wondering why:
    1/ Phone doesn't display any error - I tried also undertaker class to get notification...?
    2/ Why there isn't something like epocwind.out?

    If I made something wrong and there must be reason for it, so why there is no way to get such information????

    Regards,
    STeN -

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Client/Server strange problem on 3rd device

    Also make sure your CPolicy is not to blame, just remembered having some nasty problems when adding functionality to the server, without updating CPolicy stuff.

    yucca

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    Sorry there is not enough information to tell you anymore.

    The other think it could be is not enough stack space,
    http://www.forum.nokia.com/document/...S60_3rd_Ed.htm

    You can enable error codes using the following link
    http://www.forum.nokia.com/document/...r_messages.htm

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    Hi

    thanks for replies - I've made following progress.

    1/ I copy ErrRd file to 'c:\resource' folder on the device (SUPER!! that it works again after it was disabled on 2ndFP2).

    2/ Instead of my server I compiled yucca SIMPLE server example from PushL.com

    3/ As previously I've put following line to my AppUI::ConstructL()
    ------------------
    RSimpleServer svr;
    ------------------
    and I got error: Menu:System error(-20), which means KErrCorrupt

    4/ So the error has definitely nothing to do with my server - it's something with server dll.... No idea what?

    5/ Because the 'ErrRd' didn't work on 2ndFP2 I used RUndertaker class to notify panics instead - as I think it's also part of TaskSpy - I had it already switched on - but it didn't catch the menu panic... Why? Any ideas?

    I'm going to continue investigations...
    Thank you for help,
    STeN
    Last edited by stenlik; 2007-02-12 at 14:19.

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    I
    modified HelloworldBasic example from SDK to use yucca SIMPLE server - results with exactly the same error -20!!!! When I commented the server related code out it works((((

    I'm totally confused - where the error can be - looks that it has nothing to do with my app!
    It looks that if I use in my project dll, which was compiled by me - client application crash

    Regards,
    STeN

  8. #8
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    So you are saying the problem is in the UI?
    Try not linking with the library and see if your GUI runs.

    Maybe you need to regenerate your def file for the dll?

    As I said before, I have seen this problem where the UID was from a legacy range. Can you post the mmp file for the DLL. My guess is still its something to do with the UID's you are using

  9. #9
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    Hi,

    1/ after I remove dll related code GUI works
    2/ I've tried to clean all dll-related files re-import dll project into CW and re-freeze it

    --------------------------------------------------------------
    DLL MMP - taken from http://www.pushl.com/developers.html
    UID: 0xE00000F1 - dev.range
    --------------------------------------------------------------
    TARGET Client_0xE00000F1.dll
    TARGETTYPE dll

    CAPABILITY None

    UID 0x1000008d 0xE00000F1

    SOURCEPATH ..\client\src
    USERINCLUDE ..\client\inc
    SOURCE RSimpleServer.cpp

    USERINCLUDE ..\server\inc

    SYSTEMINCLUDE \epoc32\include

    LIBRARY euser.lib

    //EXPORTUNFROZEN


    --------------------------------------------------------------
    HW MMP - taken from SDK HelloworldBasic example
    UID: 0xA000017F - self signed range
    --------------------------------------------------------------
    TARGET HelloWorldBasic.exe
    TARGETTYPE exe
    UID 0x100039CE 0xA000017F

    SECUREID 0xA000017F
    EPOCSTACKSIZE 0x5000

    SOURCEPATH ..\src
    SOURCE HelloWorldBasic.cpp
    SOURCE HelloWorldBasicApplication.cpp
    SOURCE HelloWorldBasicAppView.cpp
    SOURCE HelloWorldBasicAppUi.cpp
    SOURCE HelloWorldBasicDocument.cpp

    SOURCEPATH ..\data

    START RESOURCE HelloWorldBasic.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE

    START RESOURCE HelloWorldBasic_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE



    USERINCLUDE ..\inc

    SYSTEMINCLUDE \epoc32\include

    LIBRARY euser.lib
    LIBRARY apparc.lib
    LIBRARY cone.lib
    LIBRARY eikcore.lib
    LIBRARY avkon.lib
    LIBRARY commonengine.lib
    LIBRARY efsrv.lib
    LIBRARY estor.lib

    LIBRARY Client_0xE00000F1.lib

    LANG SC

    VENDORID 0
    CAPABILITY NONE
    --------------------------------------------------------------

    Thanks,
    STeN

  10. #10
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    I'm at a loss to explain it. My current project is almost structed identially to yours, but my UID is a protected one for the stub

    So A quick search on google reveals there does seem to be a problem, especially if you have used EXPORTUNFROZEN at some point before on this project.

    http://discussion.forum.nokia.com/fo...ad.php?t=97409

    Also, there might be a linker error
    http://mikie.iki.fi/wordpress/?p=32

    HTH

  11. #11
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    Hi Pault,

    thank you for support and replies - finally I "found" (from link you posted here) that this is probably IDE problem - when I removed EVERYTHING FROM SDK and I build both - dll & GUI application for GCCE target from command line it starts working - I spend 3 days by trying to solve it

    I saw many people had similar problem... but nobody knows the real reason for it. I suggest that build from IDE works for many people - for you also? - but from some reasons it fails to some others...

    I'm going home
    Bye
    STeN

  12. #12
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    Nice to hear it, sounds like you need a day off

    I use Carbide.vs. to retain my sanity

  13. #13
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Client/Server strange problem on 3rd device

    Hi STeN

    The pushL exampe is infact David's, anyway I made quite simple one by myself as well, without using any additional dll stuff, if you want to have a look into it, just drop me gmail.

    yucca

  14. #14
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Client/Server strange problem on 3rd device

    Hi,

    I SPEND ANOTHER FEW HOURS TO TRY EVERYTHING ONCE AGAIN

    I completelly re-format one of my notebooks, reinstall WinXP system and then I put here CW 3.1 and CW 3.1.1 update and 3rd SDK_MR. CW 3.1.1 update is usefull for on-device debugging and additionally it allows as part of "make" phase create sis files and sign them automatically.

    As I wrote in my previous posts in this thread my sis files were GUI application and client-side R dll. I used developers certificates and self-signed key. After I created (by selecting option 'import from mmp file') both projects in IDE and I configured all things related to build and sign phase and - sisx signed installation packages files were produced by IDE. I put them both on the device and I tried to start my application and 'what SURPRISE' I have panic message again on my Nokia E70:

    "Menu: System error(-20)", which means KErrCorrupt.

    I deleted all files related to my projects manually from SDK folder and then I built everything using command line 'abld' commands it works without ANY problem!!

    So I think that this is definitely CODEWARRIOR IDE PROBLEM! Remember that I have totally new installation of the whole system!!

    Is there any Nokia Expert who can comment it? We paid you for CW licences and now we fall in such problems - strange... I'm happy that I 'solve' it - but is this a way???

    Thank guys for help
    Regards,
    STeN

  15. #15
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Client/Server strange problem on 3rd device

    The only I can think of is try the evaluation for Carbide.c++ developer and see if the issue is fixed there.

Similar Threads

  1. Problem with HTTPConnection in nokia6280 (S40 3rd edittion)
    By yair.zaslavsky in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-05-17, 06:33
  2. Problem with launching an application on device
    By santosh1980 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-12-20, 07:08
  3. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  4. Strange memory problem
    By bmcnicoll in forum Mobile Java General
    Replies: 6
    Last Post: 2004-03-08, 13:37
  5. very strange problem
    By victorh81 in forum Symbian
    Replies: 1
    Last Post: 2003-12-09, 09:09

Posting Permissions

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