<div dir="ltr">Hello,<br><br>i want to rework a existing dll to be thread safe. The boost::thread_specific_ptr looks very interesting to me. <br>Unfortunately i get an error during the loading of the dll when i define a <br>


boost::thread_specific_ptr within the dll. The dll compiles fines. If i
want to use the dll with the LoadLibrary command i get Error 193&nbsp; &quot;is
not a valid Win32 application&quot;.<br>If i remove the declaration of the boost::thread_specific_ptr everything works fine. <br>
<br>Is there anything i have to consider when using the boost::thread_specific_ptr within a dll.<br>I wrote a small testdll and everything workes fine (including the boost::thread_specific_ptr). Therefore i have no clue how the 

boost::thread_specific_ptr mess up things in my existing dll code. <br>I already tried to reduce the dll piece by piece to figure out which part of the my code cause the trouble. The result is that everything works fine (including boost::thread_specific_ptr ) untill i instantiate cetain objects. <br>
Obviously these objects do not like the boost::thread_specific_ptr. But i dont know why because these objects worked for years without any trouble. <br><br>Any Ideas?<br><br>Best regards,<br><br>R. Lindl<br><br><br><br></div>

