- changed status to open
Add fOnDestroy.UseFreeNotification := False; to the end of TMultiMapBase<TKey, TValue>.Create
Issue #339
resolved
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)
-
repo owner -
repo owner - changed status to resolved
fixed
#339→ <<cset ab1291591efa>>
-
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.
-
repo owner fixed
#339→ <<cset 9d3374c93ecd>>
- Log in to comment
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?