The example in
Bus Example Code includes the macro invocation
RW_DECLARE_COLLECTABLE_CLASS(USER_MODULE, Bus) in the declaration for
Bus. You must put this macro in your class declaration, using the class name as the argument. Using the macro guarantees that all necessary member functions are declared correctly.