Article # 327, added by Geoworks, historical record
| first | previous | index | next | last |

Compiling source files that are too large.



Q. Why am I getting this Glue error?

   BORLAND.C: Line 2466: assert(base == ((genptr)sos - scopeOff)) failed.
   *** Error code 1

Q. This is caused by having a source file that is too huge.  I would
   suggest splitting the source into multiple files (this can also
   speed compilation as files that are unchanged between compilation
   do not need to be recompiled).

   Some considerations when splitting up source code:
     *	keep all objects that are in the generic tree within the same
	file (i.e., all objects that are statically connected should
	be in the same file).  If you split up the objects into several
	source files, you will need to use MSG_GEN_ADD_CHILD to
	dynamically link them because during compilation time Glue does
	not create the links between objects if they are in separate
	source files.

     *	The standard paradigm for multiple files under GOC is to have all
	object declarations in one file, and routines and method handlers
	grouped in source files by the object that they support.