Jump to content
  • Advertisement
Sign in to follow this  
Muncher

DLL woes

This topic is 4861 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

I've gone a little DLL crazy... now im stuck :) fyi: Im using C++ .net and im loading dll's with LoadLibrary() I created an exe that looks for dll's in a certain directory, it automatically loads and links them; but if there is more than a few dll's to load, the application crashes.... i cannot figure out why, and part of the problem is that im not exactly sure what is going on under the hood when dll's are loaded... Do i have to specify a larger heapsize or something? Any good docs you can point me to? Muncher

Share this post


Link to post
Share on other sites
Advertisement
Is the application running out of available memory? Can you trace the crash to a specific DLL? Perhaps the initialization routines in one of them is causing it.

These articles describe the underpinnings of LoadLibrary.

Share this post


Link to post
Share on other sites
Going to need some more info then that, really. What kind of error are you getting which causes the crash? A seg fault? Without that sort of information, I'm just shooting in the dark. But it would seem to me that the most likely cause of the crash would be one of the DLLs returning a failure value from it's DllMain function, causing LoadLibrary to return NULL (or probably rather INVALID_HANDLE_VALUE), which then crashes when you pass it to a GetProcAddress call or something similar. But, as I said, that's pretty much a guess, more info would make this easier for everyone.

Hope this helps!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net 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!