Mayank:

You fail to mention the size of data that you are requesting on the
stack, but its also possible that strings are large enough to cause a
stack overflow. I don't know the stack size on the Palm (anyone out
there?), but its rather small in practice. Overflow exhibits the
symptoms that you describe. Try limiting the size of your allocated
strings and/or allocate the memory using MemHandleNew etc.

Thomas McCormick
Centennial Technologies/Smart Modular
e-mail: [EMAIL PROTECTED]


                -----Original Message-----
                From:   Mayank Pradhan
[mailto:[EMAIL PROTECTED]]
                Sent:   Friday, May 25, 2001 1:52 PM
                To:     Palm Developer Forum
                Subject:        Stack Trace Lost

                Hi,

                I have run into a strange problem which is as follows

                I am looping thru an array of string (char *temp[])
                and doing a StrCat to a string after every item that I
                retrieve from the array. 

                The problem is after I do the StrCat for the first
                item, I see that system Stack has lost information
                about the functions on Stack that existed before the
                execution of this statement. Although this doesnt
                affect the execution until I exit the function. So
                when I exit the function the message that I get is as
                follows . 
                "Program is attempting to change the emulated Program
                counter to 0x534.... The address is invalid because it
                is not even"

                Does anyone have any idea about this?

                PS I am using CW7, it is a C application, The array of
                Strings is not global.

                Thanks,
                Mayank.


                __________________________________________________
                Do You Yahoo!?
                Yahoo! Auctions - buy the things you want at great
prices
                http://auctions.yahoo.com/

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