0

我在 Visual Studio 2010 中处理的当前程序已经运行了一段时间,直到我发现尝试运行它的朋友收到“缺少 msvcp100.dll”错误。我试图通过将运行时库设置从“多线程 DLL”更改为“多线程”来静态链接库来解决此问题。

现在的结果是程序将崩溃并触发以下错误/断点

HEAP[Tanker.exe]:指定给 RtlFreeHeap(03090000, 02FF4418) 的地址无效 Windows 在 Tanker.exe 中触发了断点。

这可能是由于堆损坏,这表明 Tanker.exe 或其已加载的任何 DLL 中存在错误。

和调用堆栈:

    ntdll.dll!_RtlpBreakPointHeap@4()  + 0x23 bytes 
    ntdll.dll!_RtlpValidateHeapEntry@12()  + 0x30eb3 bytes  
    ntdll.dll!_RtlDebugFreeHeap@12()  + 0x9a bytes  
    ntdll.dll!@RtlpFreeHeap@16()  + 0x576fe bytes   
    ntdll.dll!_RtlFreeHeap@12()  + 0x54ed bytes 
    kernel32.dll!_HeapFree@12()  + 0x14 bytes   
>   Tanker.exe!free(void * pBlock)  Line 51 C
    Tanker.exe!std::_Tree<std::_Tset_traits<sf::ResourcePtr<sf::Image> *,std::less<sf::ResourcePtr<sf::Image> *>,std::allocator<sf::ResourcePtr<sf::Image> *>,0> >::clear()  Line 1415 + 0x23 bytes C++
    Tanker.exe!std::_Tree<std::_Tset_traits<sf::ResourcePtr<sf::Image> *,std::less<sf::ResourcePtr<sf::Image> *>,std::allocator<sf::ResourcePtr<sf::Image> *>,0> >::erase(std::_Tree_const_iterator<std::_Tree_val<std::_Tset_traits<sf::ResourcePtr<sf::Image> *,std::less<sf::ResourcePtr<sf::Image> *>,std::allocator<sf::ResourcePtr<sf::Image> *>,0> > > _First, std::_Tree_const_iterator<std::_Tree_val<std::_Tset_traits<sf::ResourcePtr<sf::Image> *,std::less<sf::ResourcePtr<sf::Image> *>,std::allocator<sf::ResourcePtr<sf::Image> *>,0> > > _Last)  Line 1383 C++
    Tanker.exe!MainMenu::Show(sf::RenderWindow & window)  Line 36 + 0x4c bytes  C++
    Tanker.exe!Game::ShowMenu()  Line 170   C++
    Tanker.exe!Game::GameLoop()  Line 128   C++
    Tanker.exe!Game::Start()  Line 24   C++
    Tanker.exe!wmain(int argc, wchar_t * * argv)  Line 12   C++
    Tanker.exe!__tmainCRTStartup()  Line 278 + 0x12 bytes   C
    kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes    
    ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes   
    ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes    

有什么简单的方法可以解决这个问题,还是动态链接 msvcp100.dll 会好很多?如果是后者,那么最好的方法是什么?

4

0 回答 0