How to solve MFCO42D. dll0xC0000005: AccessViolation problem 1. raise the question: in computer A, it is the author's computer, the program can run normally; but in computer B, it is a colleague's computer, the program runs but appears (MFCO42D. DLL): 0xC0000005: AccessViolation error message. Ii. error message: (MFC
How to solve MFCO42D. dll 0xC0000005: Access Violation problem 1. raise the question: in computer A, it is the author's computer, the program can run normally; but in computer B, it is a colleague's computer, the program runs but appears (MFCO42D. DLL): 0xC0000005: Access Violation error message. Ii. error message: (MFC
SolutionMFCO42D. dll 0xC0000005: Access ViolationProblem
I. Question proposal:
Computer A is the author's computer, and the program can run normally;
However, on computer B, a colleague's computer, the program runs (MFCO42D. DLL): 0xC0000005: Access Violation error message.
Ii. error message:
(MFCO42D. DLL): 0xC0000005: Access Violation
3. row where the program crashes:
COleDropTarget: Register (pGridCtrl );
4. Cause Analysis:
[Tools] -- [Options] -- [Directories] -- [Show directories :]
Library filesThe selected database is
C:/Program Files/Microsoft Visual Studio/VC98/MFC/LIB
Executable files
C:/WINDOWS/system32
On the author's machine, the link is MFCO42D. DLL 6.0.8168.0
On a colleague's machine, the link is MFCO42D. DLL 6.0.8972.0.
The author puts MFCO42D. DLL to the Debug directory of the program running by the author. Note: The version of this library is 6.0.8168.0.
Every time the program runs, it first searches for the MFCO42D. DLL dynamic link library from the Debug directory and loads and runs it.
On computer B, MFCO42D is compiled. in LIB 6.0.8972.0, The MFCO42D version 6.0.8168.0 under the Debug directory is loaded. DLL dynamic link library, version does not match, so the operation error.
V. Detailed comparison of computer A and computer B is:
|
Comparison item |
Computer |
Computer B |
|
Size of MFCO42D. LIB |
1,502,076 bytes |
1,043,972 bytes |
|
MFCO42D. LIB Created time |
June 17, 1998 0:00:00 |
Friday, February 27,2004, 12:00:00 AM |
|
MFCO42D. DLL size |
798,773 bytes |
827,445 bytes |
|
MFCO42D. DLL version |
6.0.8168.0 |
6.0.8972.0 |
6. solution:
1. Delete the MFCO42D. DLL file under the Debug directory of the running program;
2. Make the VC6 development environment of both the first and second computers the same, all of them are VC6 + SP6 patches.