查看完整版本 : Microsoft Visual C++ Runtime Library error

linuxfedora 2017-12-1 06:33 PM

Microsoft Visual C++ Runtime Library error

I developed a program (Written using Visual C++ with MFC) using Visual Studio 2005, and when the program is running, sometime it may show an error message (Attached) and terminated. I have tried to run the program on debug mode using Visual Studio 2015 to find the cause, but when the problem happened, it will not break on the source code. So i have no idea how to solve this problem, does anyone have any idea on how could i find the cause of it?? Thanks

[[i] 本帖最後由 linuxfedora 於 2017-12-1 06:35 PM 編輯 [/i]]

jasonchan35 2017-12-1 09:48 PM

try to turn on more compile warning
the one common mistake is using different VC runtime in some library

[url]https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx[/url]
[url]https://social.msdn.microsoft.com/Forums/en-US/9474efb9-49cd-46e1-8935-ee2bebe95203/difference-in-mt-and-md-run-time-lib-setting?forum=vcgeneral[/url]

煙民母親生賤種 2017-12-2 01:23 AM

[quote]原帖由 [i]linuxfedora[/i] 於 2017-12-1 06:33 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=471749573&ptid=27094893][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
I developed a program (Written using Visual C++ with MFC) using Visual Studio 2005, and when the program is running, sometime it may show an error message (Attached) and terminated. I have tried to ru ... [/quote]呢 D 通常係 pointer 出問題。你睇下 access pointer 或 assign value to a pointer object 果 D 地方有無 violate memory access 。
頁: [1]
查看完整版本: Microsoft Visual C++ Runtime Library error