You got some good answers on how to determine when this happens (voted). But one way to prevent it (sometimes) is to make sure that you add all the reference units to your DPR. If you open a form, for example, which contains components that reference other components in the data module, and that the data module has not been added to the DPR / project, you are almost guaranteed that the IDE will delete these links, as this will delete links that it does not can determine valid. If, on the other hand, the data module is in DPR, then the IDE will be able to find it, and it is unlikely to delete links in the first place
Unfortunately, this still happens from time to time, so you still need to take the precautions described in detail in the other answers. But it will improve the situation if you do not already.
Craig stuntz
source share