FrmCopyLabel is only used in SelectDay to copy a "yearString".  The
yearString is allocated as 5 bytes on the stack and filled by a StrIToA from
the year value that you pass in (as an Int16).  I am guessing that your year
is -1 or some other invalid value that doesn't convert to 4 decimal digits
for display.  Year should be an Int16 in the range of 1904 to 2031
(inclusive).  If you run on the emulator with debug ROMS, the emulator will
complain when the year is out of range.

-bob mckenzie, Palm PDX

-----Original Message-----
From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 7:57 AM
To: Palm Developer Forum
Subject: Re: SelectDay is blowing up...


Possibilities:
You have to call it with a valid date in Month, Day and Year.
Didn't allocate enough memory for title.

----- Original Message -----
From: "Ralph Krausse" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 10:29 AM
Subject: SelectDay is blowing up...


> Hello all,
>
> Whilst I try to figure out what is wrong, I am hoping that some
> one can help me. I am using the SelectDay function and it seems to be
> blowing up. This is the error I get. Error Message is...
>
> Receiving (1.0) just read from memory location 0x80000000. This
> access usually indicates that the application is calling a Window
> Manager function without first establishing a valid DrawWindow.
>
>
> Looking at the stack, it is failing on FrmCopyLabel. I quickly created a
> dummy application, copied the code in that and it worked so it is
> something with this code I inherited. Anyone???
>
> TIA
> Ralph Krausse
>
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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

-- 
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