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

Using "@send, forceQueue @visChildren" causes a crash.



Q. In my VisContent class I'm doing something like the following in
   one of the methods:

   @send, forceQueue @visChildren::MSG_VIS_REDRAW_ENTIRE_OBJECT();

   However, this crashes with a BAD_FLAGS_CANNOT_BE_USED_WITH_MF_RECORD
   death error in Swat. If I remove the ", forceQueue" then it works
   fine. Why is that?

A. That's because the @visChildren is implemented in such a way that
   it uses the MF_RECORD flag when calling ObjMessage and you can't
   have both the MF_RECORD and MF_FORCE_QUEUE on the same message.

   I don't know what this means as far as trying to work around it and
   force the message onto the receiving object's message queue. I would
   bet that because it's an @visChildren that the message will
   automatically go onto the message queue.