On Fri, 2003-01-24 at 20:09, John Marshall wrote:
> On Fri, Jan 24, 2003 at 11:17:26AM +0000, "kcorey" wrote:
> > When it's in the default segment [sic], it works perfectly.
> > 
> > When it's in another segment, I get an address error, and it crashes.
> [...]
> > Can anyone explain why such an innocent seeming function would torpedo
> > my app when run from another segment?
> 
> User error.

Wow, how simple...and all this time I assumed it was the computer's
fault! *smile*

> You are, of course, compiling with "-Wall"?

I hadn't been compiling with -Wall.  I put -Wall in, got maybe 50 unused
variables, a few 'variable may have been used without being
initialized', and a couple 'implicit declaration of function' errors.

Got rid of all that, and now functions that wouldn't work outside the
default segment are working in other segments.

So, if this was the thing that fixed it, thanks.

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

-Ken


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

Reply via email to