Is there any way to name external flows?

TThread.NameThreadForDebugging is great for threading, but not all of my threads are descendants of TThread. I have some that are created by an external library that is not even written in Delphi. Is there a way to name them if I can find a way to get their stream descriptors?

+3
source share
1 answer

See the MSDN article: How to Set a Stream Name in Native Code

This works for Visual Studio. I don’t know if the Delphi debugger will find a name.

Note that you need a stream identifier, not a stream descriptor.

+6
source

Source: https://habr.com/ru/post/1741004/


All Articles