At 08:15:06 -0800 on Fri, 09 Feb 2001, Steve Orens <[EMAIL PROTECTED]> wrote:

>greetings keith,
>
>sorry, addled brain. i should have pasted in the context code as well. Yes,
>"money" is an int, an Int16 to be exact. My NON-NULL comment was referring
>to the Char* which is what object->GetName() would be returning which is
>where I assumed the bus error was originating from.
>
>Well, it looks like that helped. I switched from using %ld to %d and it
>doesn't crash anymore.
>
>I guess I have always assumed that it was safe to print to use %ld (on other
>platforms, I've been able to inter-change %ld and %d with no consequences).
>Guess I will need to change my asssumption!

That's because, on most (desktop) platforms, int and long are the same type (32 bits). 
 They're not the same type in the PalmOS implementation of CodeWarrior (at least, not 
by default).


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