用VC++/MFC開發的程序,在發布的時候會遇到找不到msvcp100.dll,mfc100u.dll等DLL的問題。有時候為了圖省事,就直接從VS安裝目錄里面copy這些DLL連同程序一起發布。一般情況,這樣不會有問題。直到有一天,程序在退出的時候遇到這樣的crash問題:
---------------------------
XXX.exe - Application Error
---------------------------
The instruction at "0x5ad71531" referenced memory at "0x00000014". The memory could not be "read".
Click on OK to terminate the program
---------------------------
OK
---------------------------