Access violation in TAdvMaskEditBtn

Hello!

I encountered an error when setting the EditMask in the OnChange-Handler in the following condition:

  1. EditMask has a mask for a type of date ("!99.99.9999;1; ")
  2. The first character is set
  3. Cursor is on the first character
  4. I insert something from the clipboard (single digit or a date)
  5. the code wants to clear the EditMask (set to "")
    --> Access violation

It doesnt happen when there is more in the edit or the cursor somewhere else.

Situtation before pasting from clipboard:

-->


("Zugriffsverletzung" = "Access violation")


Here is a simple demo application
EditMaskAccessViolationDemo.zip (56.4 KB)

Thanks for your support.
Regards
Björn
(C++Builder Tokyo, VCL UI Pack 13.5.4.0)

Thank you for your sample.
We have tested this here but couldn't reproduce the access violation. We copied and pasted 1, but we don't get an access violation.
USample.zip (6.3 KB)

This also happens with TMaskEdit when clearing the Mask during an event handler.
I guess I have to work around this then.

Or is there an option or property, to avoid the separators be visible when the input is otherwise empty? (" . . ")

If this is the case with TMaskEdit, then unfortunately not. We'll investigate if there is a workaround.