Home > Software engineering >  A great god for help all of you! With untreated exception: 0 xc0000005: while reading position 0 x5a
A great god for help all of you! With untreated exception: 0 xc0000005: while reading position 0 x5a

Time:09-25

Char *.ini="\ \ L1000A ini";
Char * path;
Cstrings STR=: : sysInI. CurrPath;
Path=(LPSTR) (LPCTSTR STR);
Char str3 [20].
Char * SpecFileName;
Sprintf (SpecFileName, "% s % s", path, ini);

Cstrings Segment;
Cstrings KeyStr, V.
Segment="GENERAL";
KeyStr. The Format (" sysInI ParamFilePath "); V. ormat (" % s ", sysInI ParamFilePath);
WritePrivateProfileString (KeyStr Segment, V, SpecFileName);

SingleDisplay. Exe of 0 x7857716d (mfc100d. DLL) in untreated exception: 0 xc0000005: access conflict while reading position 0 xec34f9cd
The problem is caused by this a program, execution time can pass, finally system called the this error, check on baidu, and is a resource without release, don't know what's wrong with the program?

CodePudding user response:

Char * SpecFileName;
Sprintf (SpecFileName, "% s % s", path, ini); No application for memory

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
  • Related