Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Luc Pattyn26-Nov-07 7:39
sitebuilderLuc Pattyn26-Nov-07 7:39 
QuestionRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow26-Nov-07 7:18
David Crow26-Nov-07 7:18 
AnswerRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Luc Pattyn26-Nov-07 7:48
sitebuilderLuc Pattyn26-Nov-07 7:48 
AnswerRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
mrby12326-Nov-07 8:12
mrby12326-Nov-07 8:12 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow26-Nov-07 10:37
David Crow26-Nov-07 10:37 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Mark Salsbery26-Nov-07 13:23
Mark Salsbery26-Nov-07 13:23 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow26-Nov-07 15:46
David Crow26-Nov-07 15:46 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Sunil Shindekar26-Nov-07 23:47
Sunil Shindekar26-Nov-07 23:47 
I think this statement might have the problem.

fscanf( f_ptr2,"%s %s %s\n",buffer,buffer,fname[ii].GetBuffer(MAX_PATH));

Here one of the pointer is taken using GetBuffer of CString. I think it is not the correct way of geting the pointer of CString memory and copying value in it like character array. Taking the value in character array and then assigning it to CString might be better option. Something like this.

char sTemp[500];
fscanf( f_ptr2,"%s %s %s\n",buffer,buffer, sTemp);
fname[ii] = sTemp;

GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow27-Nov-07 3:46
David Crow27-Nov-07 3:46 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Sunil Shindekar27-Nov-07 21:06
Sunil Shindekar27-Nov-07 21:06 
QuestionRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow28-Nov-07 2:32
David Crow28-Nov-07 2:32 
Questionfclose(f_ptr2) - "Access Violation or memery can not be read" Pin
mrby12326-Nov-07 5:59
mrby12326-Nov-07 5:59 
AnswerRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
Mark Salsbery26-Nov-07 6:05
Mark Salsbery26-Nov-07 6:05 
GeneralRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
mrby12326-Nov-07 6:36
mrby12326-Nov-07 6:36 
QuestionRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
David Crow26-Nov-07 7:12
David Crow26-Nov-07 7:12 
AnswerRe: fclose(f_ptr2) - "Access Violation or memery can not be read" Pin
mrby12326-Nov-07 7:30
mrby12326-Nov-07 7:30 
QuestionLooking for a Gantt chart control Pin
Interrobang26-Nov-07 4:44
Interrobang26-Nov-07 4:44 
Questioncompile error when make a wchar_t conversion Pin
George_George26-Nov-07 3:53
George_George26-Nov-07 3:53 
AnswerRe: compile error when make a wchar_t conversion Pin
CPallini26-Nov-07 4:04
mveCPallini26-Nov-07 4:04 
GeneralRe: compile error when make a wchar_t conversion Pin
George_George26-Nov-07 20:46
George_George26-Nov-07 20:46 
GeneralNope Pin
CPallini26-Nov-07 22:23
mveCPallini26-Nov-07 22:23 
GeneralRe: Nope Pin
George_George26-Nov-07 23:31
George_George26-Nov-07 23:31 
GeneralRe: Nope Pin
CPallini26-Nov-07 23:50
mveCPallini26-Nov-07 23:50 
GeneralRe: Nope Pin
George_George27-Nov-07 3:44
George_George27-Nov-07 3:44 
GeneralOfftopic Pin
Nelek27-Nov-07 21:12
protectorNelek27-Nov-07 21:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.