Menu

Application Verifier break message

Using an invalid TLS index.

Probable cause

This stop is generated if an invalid TLS index is used. In most cases, it's because code is still using this index when TlsFree is called. Here's an example for the threadpool thread:

T1: Dll loads and TlsAlloc

T1: Queue callback

T1: Shipped waited/canceled callback

T1: TlsFree

T2: Callback runs and calls TlsSetValue

T1: Dll unloads

Information displayed by Application Verifier

Parameter1 - TLS Index

Parameter2 - Stack traces of freeing this TLS index (if applicable). Use dps to dump it.

Parameter3 - Stack trace of creating the threadpool object if not NULL.

Parameter4 - Not used

Description - Using an invalid TLS index

Additional information

Verifier stop code 0352.