Synchronisation problem on shape update ? [whiteboard]

Avatar

Avatar

coulix

Avatar

coulix

coulix

18-08-2009

Hi all,

We had a problem with our own board and tried on AFCS youtube whiteboard sample who also seem to have it.

The recipe:

Get two users A and B on the board

  • Draw a square with A
  • User A resize the height of the square but to not do the 'mouse up action' which actualy publish to AFCS.
  • User B resize the width of the square but to not do the 'mouse up action' which actualy publish to AFCS.
  • At the same time A and B release the mouse up.

What you will have is two different states of the square shape a vertical rectangle on B and  horizontal rectangle on A.

There are not seing the same thing and that is a problem (isn'it ?)

What i think is happening behind the scene is the following:

AFCS receives an update from A on shape id #n,

It publishes it back to user A and B, A ignores it because it's an aciton coming from himself, and B updates its state with the message from A.

On the other side B publishes his state to AFCS, and A updates it.

(don't know how clear is this)

What we will try to fix this problem, is to update the shape even when the published message was from ourself.

What do you think ?

Thanks !

Greg

View Entire Topic

Avatar

Avatar

coulix

Avatar

coulix

coulix

18-08-2009

Hi Hironmay,

We publish the shape after our UI update, then wait for the publish back from AFCS, and then reupdate the UI on our side.

What do you mean by " syncing from the model" a message received from AFCS ?

Thanks