SymbiSoft / mosync

Automatically exported from code.google.com/p/mosync
0 stars 0 forks source link

S40 Build Problem, work on emulator faild on device, newest mosync relese #1089

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Build app for some S40 phone (I make for 6600_fold,6101,2610)
2.send app to phone to test it(On MoSync Emulator works fine)
3.when press fire button it start downloading and show null pointer error
(NULL pointer error is because i make store, and when it finished download show 
next screen and read that store, because that store not exist it is null 
pointer, if i remove making store in download finish 
it will working something a very long i was wait one hour, file for downloading 
is 1,9 Kb, xml.
)

What is the expected output? What do you see instead?
I was expected to show download content in screen, but not happen anything if i 
remove store make

What version of the product are you using? On what operating system?
I try this on MoSync-2.4.0-r2425,nightly build MoSyncSetup-110426-1534, and on 
new MoSync-2.5-alpha on Windows home premium 64 bit. Both system is same

Please provide any additional information below.
When make same project for symbian (s60E3FP2) work perfect good. if you need 
more information i will provide to you. I attached zip file with project 

Original issue reported on code.google.com by mdjokovi...@gmail.com on 2 May 2011 at 2:01

Attachments:

GoogleCodeExporter commented 8 years ago
I read this forum topic 
http://www.mosync.com/content/can-not-receiver-data-java-device-using-http-conne
ction    and imageDownload and connection app works fine on device when i make 
then for S40 phones.
I'm little confuse because my project work fine for symbian but on s40 fail.

Original comment by mdjokovi...@gmail.com on 2 May 2011 at 2:16

GoogleCodeExporter commented 8 years ago
I more strip app, now have only download class, when press fire button it start 
downloading, same problem. On symbian work on S40 nothing happen, (i except to 
see in store folder downloaded file, that i make in 
finishedDownloading(Downloader *dl, MAHandle data)), it is showing network 
action but it start download, and i think that it finish success download but 
like connection is steel open, and cannot finis downloading, but on symbian is 
fine.

Original comment by mdjokovi...@gmail.com on 3 May 2011 at 7:33

Attachments:

GoogleCodeExporter commented 8 years ago
This issue appears to be purely memory setting related.  On many s40 devices 
the total data size is limited to 512K.  The real problem is that this program 
appears to run with higher data values.  I have successfully got this to run on 
a Nokia 6300 and Nokia 5310 using the following memory settings (heap 200, 
stack 128, data 512).  As these limitations are hardware implementation I have 
closed this issue

Original comment by miles.mi...@gtempaccount.com on 9 May 2011 at 9:03

GoogleCodeExporter commented 8 years ago
Now looking at a second project supplied.

Original comment by miles.mi...@gtempaccount.com on 11 May 2011 at 6:31

GoogleCodeExporter commented 8 years ago
Thanks, take look at manuscreen download finish method
add this from line 205
    MAHandle store = maOpenStore("MyDataXml", 0);
    if(store < 0)
    {
        softr->setCaption("error");
    }
    else
     {
    MAHandle xmlData = maCreatePlaceholder();
    maReadStore(store, xmlData);
    softr->setCaption("success");
     }
what happen is on symbian devices it will show success on s40 it will show 
error testing on 6600_fold, 6210 (build 2620), 6101, e63
i will attach again same project will this changes 

Original comment by mdjokovi...@gmail.com on 11 May 2011 at 8:23

GoogleCodeExporter commented 8 years ago
this project is with this code above , i except to show success in down right 
corner but it show error on s40 devices, i delete all fonts and leave one. 
tested on platforms that i describe above

Original comment by mdjokovi...@gmail.com on 11 May 2011 at 8:36

Attachments:

GoogleCodeExporter commented 8 years ago
After more investigation it appears the problems experienced here were memory 
settings and a case sensitivity problem with store names

Original comment by miles.mi...@gtempaccount.com on 13 May 2011 at 11:56