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

Defining a second process class messes up first one.



Q. I've defined a new process class in my application and now suddenly
   all the methods for my primary process class aren't working. Why is
   this happening?

A. In GOC programming there is no way to specify which process class is
   *the* process class for your application, other than by the order in
   which the process classes are defined (using @class/@endc). To make
   your primary process class work again you must be sure to define it
   after the other process classes. Here's an example:

   // this is for a secondary event thread
   @class MyThreadClass, ProcessClass;
   @endc;

   // this is my primary process class; it is defined
   // after the other process classes
   @class MyProcessClass, GenProcessClass;
   @endc;