A problem encountered when debugging Thread Local Storage (TLS) in Windows

Source: Internet
Author: User

When using the Thread Local Storage (TLS) API, The tlsalloc () function call system will return an ID number smaller than tls_out_of_indexes, and then you can set or access data through this ID number, this ID number is generally a number between 1 and tls_out_of_indexes, but when you are running it, use application verifier to detectProgramIf the TLS under the Basic node of the tests option is checked, the ID returned by calling the tlsalloc () function is greater than tls_out_of_indexes. if you use a third-party library such as ace that uses TLS, an error is reported. You must remove this check box.

 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.