×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41

    important>>cant play game in mobile

    i have made a game and it runs in all the emulators.

    i have successfully installed in the mobile but when i run it it says:

    Application error..
    Exiting!




    PLEASE HELP ME OUT..

    ASAP

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    United Kingdom
    Posts
    49
    Have you tried the game on an emuator that is the same as your phone? Also, is the heap space set to the same size as the phone you are testing on?

  3. #3
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    yes i have tested, and it works fine ...


    any other sugesstion????

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    United Kingdom
    Posts
    49
    Which phone gives you the error and are you compiling MIDP 1.0 / 2.0 and / or using API extensions such as Nokias?
    Last edited by mrmop; 2004-01-05 at 05:58.

  5. #5
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41

    DETAILED PROBLEM DESCRIPTION

    i have used midp 1.0 for the game, and no nokia ui have been used.

    i have tested this on wireless toolkit 2.0, and v1.3 emulators.

    i have also tested this on nokia developer suite 2.0 using emulators for Series_60_MIDP_SDK_for_Symbian_OS_v_1_0, and also Series_60_MIDP_SDK_for_Symbian_OS_v_1_2_1.

    both of them were also integrated with wirelesstoolkit 2.0 and worked fine.

    i am making this game for series 60, and i have tested this on nokia 3650.
    the installation went on smoothly, and when i ran the application, the error message is shown:

    "Application Error..
    Exiting...!!!"

    What could be the possible mistakes?
    let me know of all the possibilities and i will check them.


    Any suggestions will be of great help.


    Asif.

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA, FL
    Posts
    148
    1) If you have graphics - check you png files. MSPaint does not make them correctly.
    2) It could be memory problem - use System.gc();
    3) check your JAD file if everything is correct there.

    Dima
    Game Artists, LLC
    www.gameartists.com

  7. #7
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    what software do u suggest to make the png files?

    exactly when to use gc() ?

    what are the things to look for in the jad and jar files?

    Thanks.

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    Malaysia
    Posts
    41
    sometimes the initialization of resources on real phone is too slow and your app may try to access null object/image that is not ready yet.

  9. #9
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    1) If you have graphics - check you png files. MSPaint does not make them correctly.
    what software do u suggest to make the png files?
    As far as I could tell, the main problem with MSPaint is that it saves the png files with the extension in capital letters. So if you're trying to load a file called "test.png", but MSPaint saved it as test.PNG you will get an IOException (the filenames on the phone are case-sensitive). If you rename the file to "test.png" or change you're code to load "test.PNG" there shouldn't be any problem. Since you would be running the emulator on Windows (assumption, since you're using MSPaint), Windows doesn't care about case when it comes to filenames, so the error won't come up on the emulator, and just on the phone itself.

    shmoove

  10. #10
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA, FL
    Posts
    148
    > the main problem with MSPaint is that it saves the png files with the extension in capital letters

    As far as I remember, MSPaint has problem with png, not with extension. For me, very often MSPain saves png with some information (I have no idea what it is exacly) that my cell phone can not read it correctly. To fix that I run Microsoft Photo Editor. After that file becomes usually a little bit smaller and MIDlet can read it well.
    We spoke about that many times already. It is not only me who has pointed to MSPaint problem.

    > what software do u suggest to make the png files?
    1) MSPaint, but post process it with Microsoft Photo Editor.
    2) Photoshop - great tool!

    > exactly when to use gc() ?
    Before loading data, after finishing loading big data from recources.

    > what are the things to look for in the jad and jar files?
    I had problem once with MIDlet-Jar-Size section in JAD file. It does not relate to your problem, actually. Emulator does not care about that, but real phone does.

    Dima
    GameArtists.com

  11. #11
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    what should be the maximum size of a image file?

  12. #12
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    how to verify whether an image has been loaded before using it?

  13. #13
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA, FL
    Posts
    148
    > how to verify whether an image has been loaded before using it?
    1) When I had such problem, I could not create image via Image.createImage(filename); The aplication ended with words: "Application error. Exiting!"
    2) exception is thrown.

    > what should be the maximum size of a image file
    depends on your heap memory. Sometimes the reorganization of loading sequence can help.
    Also, be sure that image size is not bigger than the screen size. Some phones are very picky in that.

    Dima.
    GameArtist.com

  14. #14
    Registered User
    Join Date
    Nov 2005
    Location
    California, USA
    Posts
    14

    Re: important>>cant play game in mobile

    Quote Originally Posted by dpolyakov

    As far as I remember, MSPaint has problem with png, not with extension. For me, very often MSPain saves png with some information (I have no idea what it is exacly) that my cell phone can not read it correctly.…
    Microsoft's Internet Explorer doesn't handle transparency in PNGs, it's not wonder MSPaint would have issues with it.

    To the OP, your subject is kinda funny. "It's important! I can't play a game!" ;-)

    As for the error, unfortunately, these phones have resources that are too limited to be very useful at debugging. You could try commenting out bits of code to see if anything fixes the problem.
    Connecting People — Nokia

Posting Permissions

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