Advertisement Jump to content


This topic is now archived and is closed to further replies.


dll error

This topic is 5489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all, I'm using a dll for my renderer. my renderer uses a static log class. the log class has a function loadStrings. Inside this function i have:ifstream strings(path,ios::in);This causes an acces violation. when i use the log class in an non-dll file i don't get this error. Opening a file also fails always. Does someone know why? thx in advance [edited by - Freaker13 on January 14, 2004 9:52:19 AM] [edited by - Freaker13 on January 14, 2004 10:15:02 AM]

Share this post

Link to post
Share on other sites
I have no idea if this would fix the problem, but I''ve had problems working with DLLs recently, the problem being with STL containers allocating memory in the DLL and deallocating it in the EXE. The solution for that was to set the run-time library (under Project->Settings->C/C++->Code Generation) to Multithreaded DLL in both the EXE project and DLL project. That may potentially fix a lot of various problems.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!