(NTDLL. dll): 0xc0000005: access violation-Solution

Source: Internet
Author: User

Compile your own DLLProgramWhen calling the dll exe (avidll. dll): 0xc0000005: access violation, why is this problem.

During Internal debugging, we found that the new operator was called.

I don't understand, in the DLL call new operator will have such a problem, search on the network, in the Microsoft msdn Forum (specific address: http://forums.msdn.microsoft.com/zh-CN/vclanguage/thread/951a04be-6b52-4617-b396-9c35e3755759/) to find related issues.

Then, according to the instructions, change the DLL generation method to "shared MFC mode"

Project properties-> General-> Project defaults-> Use of MFC
To set the properties "use MFC in a shared DLL"

 

In addition, I also found another article on the internet, console. Solution: Use the dynamic link version of the C Runtime Library (ignore all default link libraries in your console project, link to msvcrt. lib) (specific address: http://www.poptool.net/software/p606/A60674501.shtml)

 

Debug and solve the problem. Thank you!

OK!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.