Hi Monika,

I guess the error message is too technical to shed any light on the problem.
That's way you did not write it?

Generally there are a few rules you need to preserve:
- Byte order in i2/i4 variables,
- pointer alignment
- no globals condition (unless some tricks are used)

It is very helpfull when you build a dll for the armlet debugging. But this
may not discover all problems - e.g. the alignment.

If I understand well, you call the same function twice with the same
arguments and the second call crashes. One scenario would be the following:

The call arguments were converted to the ARM byte order, but the back
conversion was omitted. Hence the second use of the same arguments must
crash.

Best regards,
    Jan Slodicka


----- Original Message ----- 
From: "Monika Kauntz" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Friday, May 20, 2005 1:00 AM
Subject: ARMlet problems


> I have created an armlet for a function that runs really slow in my app.
This armlet is in a loop and gets called multiple times. The first time I
call it everything is fine but on the next call I get a fatal exception.
> I used the instructions in the CodeWarrior Development Studio Targeting
the Palm OS Platform under "Adding ARMlets to Existing Projects".
> The fatal exception is on the PceNativeCall call and I have no idea what
the problem is. I step over this function the second time through my loop
and get a fatal exception.
> Any suggestions?
> Thanks
> Monika Trendler
> -- 
> For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/


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

Reply via email to