Diabetesinfo-Forum

SiDiary => SiDiary English => Thema gestartet von: pzsysa am September 29, 2005, 09:37

Titel: Smartphone run-time error
Beitrag von: pzsysa am September 29, 2005, 09:37
Hi Alf,

My German just does'nt cut it.... tried to read the other forums to find a similar issue  :)

Just installed SiDiary on my i-mate SP3i smartphone.
As soon as I start the app the SiDiary welcome screen appears : (version 5.0.122)

What I could figure out is that it is the locale settings. My locale on my notebook is set to South African English.
There is no such locale on the smartphone but I used UK English and formatted dates and times  etc. exactly the same on the phone and PC.

I then get the following error :

An unexpected error has occurred in SiDiarySmp.exe
Select Quit and then restart this program.

Details :

SiDiarySmp.exe
FormatException

Double::Parse+0x77
Double::Parse+0xc
Convert::ToDouble+0x13
Conversion::Val+0x314
mGlobSub::gtFormatUhrzeit
...
...


My Device info:
Maker : SP3i
Processor : ARM
O.S.: Windows CE
Version : 4.21 (Build 1088)

Any ideas ???

Thanks,

Jaco Oosthuyzen.
Titel: Re: Smartphone run-time error
Beitrag von: Joerg Moeller am September 29, 2005, 12:01
Hi pzsysa,

I'm sorry but Alf is out for Holidays 'till middle of October. Please be patient for a while, he surely will help you when he's back.
Titel: Re: Smartphone run-time error
Beitrag von: Alf am Oktober 11, 2005, 16:24
Hi Jaco,

assuming that you can still reproduce the FormatException I would like to know how this phrase is continued:

Zitat
Details :
SiDiarySmp.exe
FormatException

Double::Parse+0x77
Double::Parse+0xc
Convert::ToDouble+0x13
Conversion::Val+0x314
mGlobSub::gtFormatUhrzeit
...
...

Hopefully I can find the right place in the sourcecode with the following information from the callstack after the last given line with mGlobSub:gtFormatUhrzeit

Thanks in advance!

Cheers, Alf.
Titel: Re: Smartphone run-time error
Beitrag von: pzsysa am Oktober 17, 2005, 17:54
Hi Alf,

I can reproduce this every time.
This seems to  happen as soon as I copy the .ini file from my PC to my iPaq....

Here goes (from previous post) :

mGlobSub::gtFormatUhrzeit
mGlobSub::gtGetUhrzeit+0x
mGlobSub::gWerteLesen+0x
frmUebersicht::frmMain_Load
Form::OnLoad+0x15
Form::_SetVisibleNotify+0x
Control::set_visible+0x1f
Form::ShowDialog+0x21
cNavigation::StartApp+0x39
mGLobSub::Main+0x37

Unfortunately I cannot scroll across, so some of the addresses are incomplete.

Hope this helps,

Jaco.
Titel: Re: Smartphone run-time error
Beitrag von: pzsysa am Oktober 17, 2005, 18:32
Alf,

Maybe I should just change the default .ini file on the smartphone.
All I want to do is change the units from md/dl to mmol.
Perphaps there is one entry I can add ... everything works fine except the units.

Thanks,

Jaco.
Titel: Re: Smartphone run-time error
Beitrag von: Alf am Oktober 17, 2005, 18:52
Hi Jaco,

just to get things clear:
Which ini file did you copy to the Smartphone right before it crashed?  :staun:

If you just want to change the units on your smartphone, you should use the built-in screen (Navigation->Profile) instead of copying ini files... :zwinker:

In case that you would delete the sidiary.ini on your smartphone, it would come up without problems? (ok, you would lose your settings but this would mean that one of the settings are currently incorrect?!)

Meanwhile I've done a bit codereading about this issue and one probable reason could be an invalid default-timeslice setting?! It would be great, if you could provide your ini file by email. I would debug this thing immediately and come back with a workaround or an update!

Thanks in advance!

Cheers, Alf.

Titel: Re: Smartphone run-time error
Beitrag von: Joerg Moeller am Oktober 17, 2005, 20:02
This seems to  happen as soon as I copy the .ini file from my PC to my iPaq....

iPaq? Isn't that a Pocket PC? I thought you are using a smartphone? :kratz:
Titel: Re: Smartphone run-time error
Beitrag von: LordBritish am Oktober 17, 2005, 20:38
This seems to  happen as soon as I copy the .ini file from my PC to my iPaq....

iPaq? Isn't that a Pocket PC? I thought you are using a smartphone? :kratz:

iPAQ is a Pocket PC, but the new iPAQ´s from HP i think it was HP iPAQ 6510 is a Mobilephone too.
Titel: Re: Smartphone run-time error
Beitrag von: Alf am Oktober 17, 2005, 20:59
Well although the Smartphone version will probably run on Windows Mobile 2003 SE powered PPC PE (phone edition) devices as well as on "real Smartphones" it is strictly optimized for the mobiles (screen size, data capturing etc.). So if you want to use SiDiary on an iPaq, the PPC edition (together with the evbRuntime) would be the much better option...

Cheers, Alf.
Titel: Re: Smartphone run-time error
Beitrag von: pzsysa am Oktober 17, 2005, 21:12
Jörg, you are right - it is a Smartphone. I do use SiDiary on my PocketPC too. No wonder I am confusing myself   ???
Alf, I have not been very clear. I have now followed the following steps (and wrote them down this time  :rotwerd:)

1) SiDiary not running on my notebook
2) Deleted from Smartphone and restarted phone
3) Deleted all directories and files related to SiDiary.
4) Re-installed SiDiary succesfully.
5) Start SiDiary and get German language. Stop SiDiary, copy langEN.txt and re-start. Now get English language.
5) Went into Profile and changed the units and other relevant info.
6) Went into Settings and changed timeslices to be the same. Check other info...
6) Terminate SiDiary, restart and everything works fine.
7) Start SiDiary on my notebook.
8  SiDiary on the phone notifies of the fact that it is in slave mode.
9) Sync starts on PC
10) SiDiary on phone terminates.
11) Re-start of SiDiary on phone fails with exactly the same message.
12) Remove .ini file from phone and restart SiDiary. The startup screen appears, clears, todays date displays on bottom of screen momentarily and application terminates with same error.

I will e-mail you my ini files from my phone and notebook, and my data file from the notebook.

Hope this info is of more value....

Thank you,

Jaco.
Titel: Re: Smartphone run-time error
Beitrag von: Alf am Oktober 18, 2005, 19:29
Hi Jaco,

thanks a lot for your files which were really helpful! :ja:

The reason was the constellation of either your locale settings and also the different settings within SiDiary for Windows and for SMP:

* You have used an AM/PM-Setting on your PC and there were a lot of tracked values with this schema.
* On the smartphone although the locale setting was for UK-English, the time format was Military but not Am/PM
* SiDiary SMP was configured to work with Military time format, but the synced values from the PC came as AM/PM times.

These different settings were too much for the Smartphone version :zwinker:

The current update package at sidiary.org should deal with "most" of the different time format settings. In fact it has worked fine with your files (data tracking, stats, trend etc.) but since the format exception came from a bug in the Val-function of the .net compact framework I cannot grant that our workaround will cover all places beside of the one you have encountered and of course we haven't tested this workaround on our test devices which all have German os versions.

So please let me know, if this version has still constraints for your daily work or if it is running well.
Thanks a lot in advance!

Cheers, Alf.

One thing to mention: You could activate the AM/PM time format also for the Smartphone version of SiDiary with this key:
[Einstellungen]
AM/PM=1
This setting will convert even inputs in mitlitary style, which means you can enter 1600 and this would be converted into 4:00p...
But it's kind of an "undocumented feature" and might cause other trouble with conflicts from the locale settings, I don't know, just play around a bit... ;)
Titel: Re: Smartphone run-time error
Beitrag von: pzsysa am Oktober 20, 2005, 21:16
 :) Hi Alf  :prost:

I am happy to report that everything works 100%.
I have captured new data on my notebook, on my i-mate sp3i and on my hp ipaq.
And everything is in sync and works  :banane:

Thanks for your support effort.

Jaco.
Titel: Re: Smartphone run-time error
Beitrag von: Alf am Oktober 20, 2005, 22:18
Hi Jaco,

great! Now I can enjoy my bedtime...  :zwinker:

Cheers, Alf.