ADAPT icon indicating copy to clipboard operation
ADAPT copied to clipboard

Pascal - Threads - Crash on Termination if referenced via Interface

Open LK-Daniel opened this issue 8 years ago • 1 comments

If you consume a TADThread or TADPrecisionThread descendant via the IADThread or IADPrecisionThread Interfaces, your application can crash on termination.

This is due to some kind of annoying failure when the Reference Count hits 0.

Need to resolve this as it is fundamental to the "100% Interfaced" designed intent of ADAPT.

LK-Daniel avatar Jul 05 '16 18:07 LK-Daniel

As of commit e8c953d, I've temporarily disabled the use of IADThread and IADPrecisionThread interfaces.

For now, Threads should be referenced strictly by their Implementation (Class) Type, and manually disposed.

I'm not giving up on the notion of having 100% interfaced Threads just yet... but at this time I really don't want to be bogged down trying to solve this one issue when there's so much more that needs to be done (and, as usual, never enough time in which to do it all)

LK-Daniel avatar Jul 05 '16 18:07 LK-Daniel