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

geode cannot be multi-launchable and handle relocation GLUE errors




When you get errors like the following:

    Error SOURCE.GOC 73: Error handle relocation from shared/read-only to
         unshared/writable segment 
    INTERFACE Error LCLIT.GOC 73: Error geode cannot be multi-launchable
     
It is becuase you don't have the "single" flag set in the "type" line 
of your .gp file.  The type line should look something like this:
	type   appl, process, single

You will generally want your application to be single launchable,
especially on smartphones and PDA devices.  If you are writing an
application that you do want to make multi-launchable (that is,
more than one instance of the application can be launched 
concurrently), then you will need to use GeodeGetOptrNS on any
static optrs in your source code.  Here is an example of using
that:
	@send GeodeGetOptrNS(@MyObject)::MSG_META_DUMMY();

NOTE: GeodeGetOptrNS will cause a single launchable application
to crash, so don't use it if you have the "single" flag set.