Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Written by vs2010 Windows / MFC programs, use of dynamic libraries to load, the use of automatic release after completion of the individual machines will appear after a period of time the situation failed to load, error code: 0x00000008
I ask: Why?

Moved from Answers

Task Manager can see the memory increase very quickly, but it will be down for a while, and then loaded to failure after

Load (UIUTILA_LoadLibrary) when counting all the free (UIUTILA_FreeLibrary), the regular check dynamic libraries can be released

Multi-threaded dynamic library handle the problem without
Posted
Updated 12-May-11 23:59pm
v2
Comments
Joan M 13-May-11 6:03am    
Definitely you should not put extra information as a solution... you can always use the IMPROVE QUESTION button under your question. ;)

Could you write a little bit of code? I don't know, it probably would help us to help you...

How do you load the DLL's?
Could you describe the process?
But the most important:

Paste some code...

PS:
Seeing your newly added information, I agree SAKryukov: it must be a memory leak: you are loading things into memory that you are not freeing after.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 13-May-11 5:46am    
Code posted by OP as "solution", you can see it.
--SA
Joan M 13-May-11 6:04am    
Knowing that the error is a not_enough_memory one and seeing that the memory consumption is increasing fast you must be right... it must be a memory leak...
Sergey Alexandrovich Kryukov 13-May-11 6:45am    
A 5.
--SA
Joan M 13-May-11 6:46am    
Thank you SAKryukov!
The error code correnspond to ERROR_NOT_ENOUGH_MEMORY.
You should check why you went out of memory.
:-)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-May-11 5:46am    
Memory leak suspected. A 5. OP posted some code as "solution" -- please see.
--SA
CPallini 13-May-11 6:10am    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900