LoadLibrary错误代码:0x00000008 [英] LoadLibrary error code: 0x00000008
问题描述
由vs2010编写的Windows/MFC程序,使用动态库进行加载,使用自动释放完成后的个别机器将在一段时间后出现加载失败的情况,错误代码:0x00000008
我问:为什么?
从答案中移出
任务管理器可以看到内存增加非常快,但是会关闭一段时间,然后在加载后失败
计数所有空闲(UIUTILA_FreeLibrary)时加载(UIUTILA_LoadLibrary),可以释放常规检查动态库
多线程动态库可以在没有
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
推荐答案
的情况下解决该问题.您可以编写一些代码吗?我不知道,这可能会帮助我们为您提供帮助...
如何加载DLL?
您能描述一下过程吗?
但最重要的是:
粘贴一些代码...
PS:
看到您新添加的信息,我同意SAKryukov:这一定是内存泄漏:您正在将东西加载到内存中,之后便无法释放.
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.
错误代码与ERROR_NOT_ENOUGH_MEMORY
相对应.
您应该检查内存不足的原因.
:-)
The error code correnspond toERROR_NOT_ENOUGH_MEMORY
.
You should check why you went out of memory.
:-)
这篇关于LoadLibrary错误代码:0x00000008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!