Add fOnDestroy.UseFreeNotification := False; to the end of TMultiMapBase<TKey, TValue>.Create

Issue #339 resolved
Илья Ненашев created an issue

It is necessary to skip AV on try cast TWrappedCollection into TComponent at TEventBase.Notify on fOnDestroy usage.

That AVs are dismissed by try/except statement in runtime, but it handled by the debugger and it is annoying.

Comments (4)

  1. Stefan Glienke repo owner
    • changed status to open

    I’ve never seen an AV from that place but UseFreeNotification is indeed unnecessary.

    The AV is not from casting to TComponent though but likely from that “bruteforcing” in IsClassPtr?

  2. Илья Ненашев reporter

    Yes, in IsClassPtr

    We have the same issue in IsClassPtr with some other situation, but I still can’t carefully diagnose it and find a proper fix there.

  3. Log in to comment