Ken Corey wrote:
>> You are, of course, compiling with "-Wall"?
> 
> I hadn't been compiling with -Wall.  I put -Wall in, got [...]
> a couple 'implicit declaration of function' errors.

...one of which related to the call of AdjustScrollbar() from your form
event handler.  Wasn't that a clue? :-)

> But again, I'm curious as to why that particular function broke in
> outside segments?  Voodoo fixes worry me.

You really think I would suggest voodoo so flippantly? :-)  You might
want to reread this passage from the documentation:

        Make very sure that the relevant annotated declaration is
        visible when you define [a function in a non-default section],
        and especially *everywhere* you call it.  If there is a call
        to a non-default sectioned function from which the annotated
        declaration is not visible, the call will be generated as a
        call to the default code section.  When such a call is
        executed, it jumps to effectively a random location in the
        wrong code section and almost certainly crashes.  (Warning
        options which can detect these mistakes at compile time are
        noted in the discussion of required visibilities in [the
        section on Function attributes].)

That's in the section on multiple code resources, oddly enough.

    John

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

Reply via email to