Oct 26, 2010

Data is out of sync

I have found out that, in Slidex, the printed data cannot be queried at the time when it is sending data to the printer.

Because the printing task is on a different thread. This means that some other threads might already change the data in the database.

It makes the printed data wrong.


Here is the fix:

We need to make copies of all data needed by a printing task. And that's it.

----------------------------------------------------------------------------------

This also happens with all the commanders. We need to make copies of data just for sending.