Has anybody another idea for my TimSetSeconds problem?
My app runs very stable if I comment out the call to TimSetSeconds.
I can't image what's going wrong with this rather simple call.
I have not registered my app for getting time change notifications, and I
don't think this should be necessary.
Any help is very appreciated!
TIA
Helmut
Helmut Giritzer <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:
[EMAIL PROTECTED]
>
> I have a problem setting the time with TimSetSeconds.
> As soon as the program executes the TimSetSeconds function, there happens
a
> bus error inside another application (POSE says Date Book 3.5). Please
take
> a look at the code fragment below.
> I know that POSE doesn't change the Windows system time, but the program
> doesn't work on a real device, too (Fatal alert, Reset necessary).
>
> Program runs with sysAppLaunchCmdNormalLaunch.
> I'm using CW7, POSE 3.1, palmos35-en-ez.rom (Palm Vx, 8MB), Symbol SPT
1700.
>
> Thanks for your help.
> Helmut Giritzer
>
>
> UInt32 ulSecs;
> DateTimeType dtPalm;
>
> dtPalm.year = 2001;
> dtPalm.month = 6;
> dtPalm.day = 5;
> dtPalm.hour = 10;
> dtPalm.minute = 11;
> dtPalm.second = 12;
> dtPalm.weekDay = 0; // don't know, set to 0
>
> ulSecs = TimDateTimeToSeconds( &dtPalm );
> TimSetSeconds( ulSecs );
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/