TIDEFormDesigner.SaveToStream issue

Hi, sometimes I notice strange behavior of the engine. The application ends with Access Violation. The call stack shows that the exception is being thrown in the TIDEFormDesigner component, in the SaveToStream method.

The problem can arise in such cases:

  • when saving a unit with a form (DFM as text, by default)
  • when switching between Memo and TIDEFormDesignControl
  • just when typing in Memo

The difficulty is that this problem does not arise constantly, but from time to time (however, often). I have call stack screenshots, will they be useful for analyzing the problem?

Maybe my question is similar to this topic, because the TIDEFormDesigner component is affected:

But since the problem occurs NOT ONLY when saving, but also when printing in TIDEMemo, I don't know how to fix it...

After some experimentation, I've found that exception is thrown when the component TIDEFormDesignControl is invisible (Visible=False). I have revised my application logic and now I keep this component visible. Maybe this post will help if you have the same problem.

1 Like