Sam,
Are you calling other DLLs within the dll that is failing to download? That will definitely cause problems. Also, you may be experiencing these issues due to accessing some of the Win API that is not supported by the RT OS. Hope that helps.
Dr. RT Jr.