> > From: "Vu Pham" <[EMAIL PROTECTED]> > > My app passes the limit of 32K and I use smart model to overcome that > limit. > > Anyway, for some reason, if I move one of the functions from one file to > > another file, the app crashes when that function is called. > > When I move it back, it works. This function is called when there is no > > global data, but it does not use global data at all. > > > > ( The compiling process goes fine, no error at all ) > > > From: "Chris Tutty" <[EMAIL PROTECTED]> > How are you altering the function declaration when you move > the function? In theory the prototype would move from the > first .c file to a .h header #included by both .c files.
From: "Vu Pham" <[EMAIL PROTECTED]> Yes, I moved the function implementation from first.c to second.c, and moved the function declaration from the first.h to second.h.
Perhaps you should go to a single header file.
Given you have a relatively small program, I don't think you need multiple header files.
Also, any functions that might be called when you process a launch code that doesn't allow globals, must be in the primary segment.
Roger Stringer Marietta Systems, Inc. (www.mariettasystems.com)
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
