Hi Sruthi,
I'm afraid I'm none the wiser. I think this reminds me why I'm not in
favour of C++ for most applications.
How is, for instance, ARROW_COSINE, declared? How big is each element?
At its simplest ARROW_COSINE could be declared as
float ARROW_COSINE[10];
in which case the array uses 40 bytes (assuming 4 byte floats).
If ARROW_COSINE is an array of class objects I have no way of judging its
size and Neil's suggestion that you are running out of memory seems more
likely.
If they are class objects I don't understand why. At the end of the day
they will probably be used as floats (as seems to be the case with your
other variables).
Regards,
as an aside it would be more normal to code
if(val == '0' || val == '1' || val == '2' || val == '3' || val == '4' || val
== '5' || val == '6' || val == '7' || val == '8' || val == '9')
as
if ((val >= '0') && (val <='9'))
On 01/02/07, Sruthi <[EMAIL PROTECTED]> wrote:
>
> Hi Pinus..
> Thanks for the quick response.
>
> ARROW_COSINE[0] = m_oFixed.valueOf("0.000");
>
> In the above statement "m_oFixed" is an object of "Fixed" class used in
> our application.
> Am pasting the code below.
>
> Fixed Fixed::valueOf(char* sValue){
> // Fixed* fx = new Fixed(sValue, STRLEN(sValue));
> //REPORT_ALLOC(fx);
> Fixed retFX;
> retFX.m_lValue = strToX(sValue);
> //DELETE_OBJECT(fx);
> return retFX;
> }
> ...
>
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/