multithreading - Crash using variables declared __declspec(thread) -
i have dll (written in c) uses static thread local storage (__declspec(thread)
), , want use dll visual basic graphic interface.
unfortunately, when running interface on windows xp dll use static thread local storage crashes when try acess thread variables.
how can solve problem?
thanks, regards
g.b.
ps not modify dll.
this known limitation of static tls. although aren't explicitly calling loadlibrary()
, vb runtime on behalf.
note limitation has been lifted vista. comprehensive reference know of on ken johnson's blog.
you may able around problem if dll included in imports table of generated .exe, involve pe hacking , i'm far it's viable strategy. otherwise you'll need change dll.
Comments
Post a Comment