Are you sure your timeAsString is a large enough buffer?  Is it NULL
terminated?  If not, then your StrPrintF may try to print a very long
string.  What are your preferences set to for the date format.  If it is a
long date, then you need 15 bytes.  You still may need one extra byte to
NULL terminate the string, but I am not sure on that point!

Brad

"Al Smith" <[EMAIL PROTECTED]> wrote in message
news:113102@palm-dev-forum...
>
> Thanks Jeremy,
>
> I try fixing it , but now im getting a low memory error..
> I am using.
>
>
>
> StrPrintF(" %s:%02d",timeAsString ,dateTime.second);
>
> it compiles ,but crashes..any hints
>
>
>
> >From: Jeremy Dewey <[EMAIL PROTECTED]>
> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> >To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> >Subject: Re: Little Help
> >Date: Tue, 11 Feb 2003 08:45:02 -0800
> >
> >The trouble is with your call to StrPrintF - you are specifying two
> >arguments in the format string, but only passing one. Further, it is
likely
> >crashing or printing garbage because the value you are passing is a
number
> >but is being interpreted as a string.
> >
> >Jeremy
> >
> >At 2/11/2003 08:33 AM, you wrote:
> >>G' day all,
> >>
> >>I am having a little trouble printing out the seconds in this routine
> >>, can anyone tell me whats wrong with it..
> >>
> >>[snip]
> >>
> >>StrPrintF(" %s:%02d" ,dateTime.second);
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to unsubscribe,
> >please see http://www.palmos.com/dev/support/forums/
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to