Hi

The date you have specified 6/5/2001 is a Tuesday and you have specified the
day member dtPalm.weekDay = 0 as Sunday .....

The function TimDateTimeToSeconds could be returning an invalid number
because of  an invalid day specified ,
which you then pass to the TimsetSeconds functions....

check this out with valid data that is dtPalm.weekDay =2(2 for tuesday)

Thanks,
Santhosh
Developers' Nation DTS Engineer

Developers' Nation provides Palm OS Technical Support with a guaranteed
response time.  Go to http://www.devnation.net


"Helmut Giritzer" <[EMAIL PROTECTED]> wrote in message
news:51857@palm-dev-forum...
>
> 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/

Reply via email to