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

Multilaunchability and your geode.




If you're writing a multi-launchable geode, you will have to use
GeodeGetOptrNS to reference any static objects. No longer will you be able
to do: 

  @send MyAppObject::MSG_GEN_APPLICATION_SOME_MESSAGE();

Instead you'll have to do something like this:

  optr app;
  app = GeodeGetOptrNS( @MyAppObject );
  @send app::MSG_GEN_APPLICATION_SOME_MESSAGE();

It is recommended that you instead write only single-launchable geodes.
This way you won't have to use GeodeGetOptrNS and you'll maintain your
sanity. To make sure your app will compile as single-launchable, put the
word "single" in the type line in your .GP file. 

By the way, using GeodeGetOptrNS in a single-launchable app will cause an
ILLEGAL_HANDLE error.