Analysis of dll resource module switching problem