Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000

Anyway, here’s a picture:


After half a day’s search, I finally found the problem. Here are the details:
The dynamic library is called in a thread function, hInst = loadLibrary (“mydll/mydll.dll”); However, this library is Win32Debug, so the Win64Debug runtime will report the above error.
However, Win32 has the following problems:

This program was originally on a Windows 32-bit computer, now get my Windows 64-bit on such a problem, I do not know is the VS version of the problem, or 32-bit and 64-bit compatibility problems. Continue to verify, have the result again to continue.
If you run Debug Win64 on Windows 32, it will prompt you to dump 64 bits. If you run Debug Win64 on Windows 32, it will prompt you to dump 64 bits. It’s hard to make a program that’s not your own. I realized that I really can’t solve this problem. The problem is defined as a compatibility problem. If anyone has solved it, please let me know in the comments section.
The above solution is only the case I encountered, you may not be the same as this case, please do not take a peek.

Read More: