×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Ukraine, Kiev
    Posts
    6

    Port from 2nd to 3rd problem. Program not start at all

    Hi everyone!
    I port project from 2rd to 3rd ,it is compiled without the errors. But it is started neither on the emulator nor on the phone.
    Even it does not enter into the entry point when debug. And I can't se my icon.
    What does it mean?
    Thanks.

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

    Re: Port from 2nd to 3rd problem. Program not start at all

    Quote Originally Posted by IgorKost
    Even it does not enter into the entry point when debug. And I can't se my icon.
    Is this about a specific icon, or you cannot see the application at all?
    What does it mean?
    Something is wrong.

    A quick porting checklist:
    - app: modify target, targettype to .exe, no targetpath
    - modify UID in .mmp and in C...App
    - "START RESOURCE" instead of RESOURCE, targetpath \resource\apps
    - create ..._reg.rss, minimal content:
    Code:
    #include <appinfo.rh>
    UID2 KUidAppRegistrationResourceFile
    UID3 0x<UID of your application>
    RESOURCE APP_REGISTRATION_INFO
    {
        app_file="<app executable without .exe extension>";
    }
    targetpath \private\10003a3f\apps
    - E32Main
    Code:
    #include <eikstart.h>
    GLDEF_C TInt E32Main()
    {
        return EikStart::RunApplication( NewApplication );
    }

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Ukraine, Kiev
    Posts
    6

    Re: Port from 2nd to 3rd problem. Program not start at all

    Thanx!
    I replace:
    Code:
    RESOURCE APP_REGISTRATION_INFO
    {
      app_file="MyProg Mobile";
    }
    to
    Code:
    RESOURCE APP_REGISTRATION_INFO
    {
      app_file="MyProg";
    }
    After that app started, but than appears message box "App. closed: MyProg".
    How I can obtain more complete information about errors?
    Last edited by IgorKost; 2006-10-09 at 13:49.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    Ukraine, Kiev
    Posts
    6

    Re: Port from 2nd to 3rd problem. Program not start at all

    What about icon.I comment-out unnecessary line in mmp file
    Code:
    TARGET                                  MyProg.exe 
    TARGETTYPE                              exe 
    UID                                     0x0 0xed8a9fd0 
    SECUREID                                0xed8a9fd0 
    //TARGETPATH                              \system\apps\MyProg
    ...

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Port from 2nd to 3rd problem. Program not start at all

    Quote Originally Posted by IgorKost
    After that app started, but than appears message box "App. closed: MyProg".
    How I can obtain more complete information about errors?
    I am not sure, but the old ErrRd is said to be still working (new location: c:\resource). So try creating an empty file called ErrRd in the epoc32\winscw\c\resource folder of your SDK (you may also try epoc32\data\z\resource or epoc32\release\winscw\udeb\z\resource) and see what happens.

  6. #6
    Registered User
    Join Date
    Oct 2006
    Location
    Ukraine, Kiev
    Posts
    6

    Re: Port from 2nd to 3rd problem. Program not start at all

    In generally the main problem solved, program began starting and I see the icon.
    Now I receive a lot panic codes and 'get on new level', clean-up and fix the main code.
    Very thanx to wizard_hu_!

  7. #7
    Regular Contributor
    Join Date
    May 2006
    Posts
    79

    Re: Port from 2nd to 3rd problem. Program not start at all

    Hi to all!

    I m tring to run my application on 3rd edition.I can see my app pn the device(N3250) . bt if i clicked my application, its displaying the error like "App.Closed:test".

    In my application i used many mbm files. The target path of the mbm files are //system//apps//test//file.mbm.

    Is there any mistake in the file path?

    If i commented those lines(mbm files), that time also, i am getting the same error!

    can u help me out


    Thanx in Advance !!!

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

    Re: Port from 2nd to 3rd problem. Program not start at all

    What have you modified and what have not you modified?
    The .mbm might be in a bad place in \system\apps\test, try putting it to \resource\apps
    Can you try if your app runs in the emulator?

  9. #9
    Registered User
    Join Date
    Feb 2006
    Posts
    29

    Re: Port from 2nd to 3rd problem. Program not start at all

    In .pkg file mention the target of ur mbm file as both \system\apps\file.mbm and resource\apps\file.mbm.
    In .rss file also mention the icon_file path as resource\apps\file.mbm

    Regards,
    Iti Jha

  10. #10
    Regular Contributor
    Join Date
    May 2006
    Posts
    79

    Re: Port from 2nd to 3rd problem. Program not start at all

    Hi,

    Thanx for ur kind information!!!

    i put my mbm files target path as resource\apps\file.mbm.
    I checked the mbm file also.Its stored in the same path on the device.

    Bt its still giving the same error "App. Closed:test".

    I didnt try on the emulator.Coz,In the begining itself we are testing on the target device.

    my .pkg file looks like,

    ; test.pkg
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"test"},(0xE517F71D),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\test.exe" -"!:\sys\bin\test.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\test.rsc" -"!:\resource\apps\test.rsc"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\test_reg.rsc" -"!:\private\10003a3f\import\apps\test_reg.rsc"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\icon001.mbm" -"!:\resource\apps\icon001.mbm"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\icon002.mbm" -"!:\resource\apps\icon002.mbm"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\icon003.mbm" -"!:\resource\apps\icon003.mbm"

    And also, i m creating one document file in the begining to store some data abot my application.The document file path is " \resource\apps\testdocument."

    is there any props on creating the document file?

    Thanx in Advance!!!

    By,
    karthikeyan.B

  11. #11
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Port from 2nd to 3rd problem. Program not start at all

    Hi bkarthik_be,
    i would suggest you to try it in the emulator first and then move onto the target device and please make sure you have set the ErrRd file as mentioned by Wizard_hu_ in post #8. it would enable you to debug more effectively.

    Priju

  12. #12
    Regular Contributor
    Join Date
    May 2006
    Posts
    79

    Re: Port from 2nd to 3rd problem. Program not start at all

    Hi!

    I solved my props.Actually, the props is on my document storeL and RestoreL.
    Now, i can see my icons on the application.The basics things are working fine.


    by,
    Karthikeyan.B

  13. #13
    Regular Contributor
    Join Date
    May 2006
    Posts
    79

    Re: Port from 2nd to 3rd problem. Program not start at all

    Hi,

    now, i m facing a new problems on my application.my application is working fine,After made some changes on .pkg files.

    In my application, i m creating a document file for internal use of my app.
    Whenerever the control exit from my app, my app calls the SaveL(). Bt, The SaveL() doesnt call the StoreL() of document class.

    Do u know the reason?
    If u know, plz help me out!

    Thanx in Advance!!!

    By,
    karthikeyan.b

Similar Threads

  1. Replies: 35
    Last Post: 2009-04-11, 14:36
  2. push registry port problem
    By Larry101 in forum Mobile Java General
    Replies: 7
    Last Post: 2007-12-14, 22:46
  3. Replies: 4
    Last Post: 2007-06-01, 03:36
  4. problem in a j2me program on Nokia 6630/6680
    By lappard in forum Mobile Java General
    Replies: 1
    Last Post: 2006-06-29, 01:43
  5. problem in j2me program on Nokia 6630/6680
    By lappard in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-28, 16:32

Posting Permissions

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