Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std c++ i/o with files Pin
Peter Charlesworth4-Mar-06 11:50
Peter Charlesworth4-Mar-06 11:50 
GeneralRe: std c++ i/o with files Pin
John R. Shaw4-Mar-06 15:22
John R. Shaw4-Mar-06 15:22 
AnswerKerridge Pin
Rob Caldecott5-Mar-06 6:35
Rob Caldecott5-Mar-06 6:35 
GeneralRe: Kerridge Pin
Peter Charlesworth5-Mar-06 7:37
Peter Charlesworth5-Mar-06 7:37 
Questioncreateprocess Pin
Sam 20064-Mar-06 6:58
Sam 20064-Mar-06 6:58 
AnswerRe: createprocess Pin
PJ Arends4-Mar-06 11:52
professionalPJ Arends4-Mar-06 11:52 
QuestionDeploying a VC++ application on a target machine Pin
Themis4-Mar-06 6:53
Themis4-Mar-06 6:53 
AnswerRe: Deploying a VC++ application on a target machine Pin
Richard_484-Mar-06 12:50
Richard_484-Mar-06 12:50 
GeneralRe: Deploying a VC++ application on a target machine Pin
Themis4-Mar-06 21:27
Themis4-Mar-06 21:27 
GeneralRe: Deploying a VC++ application on a target machine Pin
Gary R. Wheeler5-Mar-06 3:07
Gary R. Wheeler5-Mar-06 3:07 
AnswerRe: Deploying a VC++ application on a target machine Pin
Michael Dunn5-Mar-06 6:34
sitebuilderMichael Dunn5-Mar-06 6:34 
QuestionText Justification Pin
Richard_484-Mar-06 5:50
Richard_484-Mar-06 5:50 
QuestionRe Post of earlier message - ANSI String in Classes Pin
Tom Moore4-Mar-06 4:45
Tom Moore4-Mar-06 4:45 
AnswerRe: Re Post of earlier message - ANSI String in Classes Pin
Nemanja Trifunovic4-Mar-06 4:47
Nemanja Trifunovic4-Mar-06 4:47 
GeneralRe: Re Post of earlier message - ANSI String in Classes Pin
Tom Moore4-Mar-06 5:01
Tom Moore4-Mar-06 5:01 
GeneralRe: Re Post of earlier message - ANSI String in Classes Pin
Nemanja Trifunovic4-Mar-06 5:20
Nemanja Trifunovic4-Mar-06 5:20 
QuestionStack Overflow, possible cause? Pin
Waldermort4-Mar-06 4:16
Waldermort4-Mar-06 4:16 
For the last few days I have been trying to find the cause of my stack overflow problem, I have a possible solution, but I'm not sure if I am correct.

within a class, I declare a vector of type <record>, RECORD is quite a large struct
struct _RECORD {
	int  exam_data;
	bool needs_saving;
	char *name;
	char *english_name;
	char *year;
	char *room;
	char *exam[40];
	char *chinese[40];
	char *math[40];
	char *english[40];
	char *physics[40];
	char *chemistry[40];
	char *politics[40];
	char *biology[40];
	char *history[40];
	char *geography[40];
	char *total[40];
	char *average[40];
	char *class_rank[40];
	char *grade_rank[40];
	char *class_imp[40];
	char *grade_imp[40];
	char *comment;
};
I have tried various ways of representing this data, this struct was in my opinion the best choice.

Anyway, I have read that creating very large arrays can eat away at the stack, but I am not sure if that is the case with my vector. I thought vectors were dynamic and adjusted their memory accordingly. Another note, throughout my program I only refrence this vector, ie I pass a pointer to functions.

Could this be the cause of my problems, if so are there any suggestions of how to fix it?
AnswerRe: Stack Overflow, possible cause? Pin
Christian Graus4-Mar-06 5:13
protectorChristian Graus4-Mar-06 5:13 
GeneralRe: Stack Overflow, possible cause? Pin
Waldermort4-Mar-06 5:33
Waldermort4-Mar-06 5:33 
GeneralI FOUND IT!!! Pin
Waldermort4-Mar-06 7:57
Waldermort4-Mar-06 7:57 
GeneralRe: I FOUND IT!!! Pin
John R. Shaw4-Mar-06 15:51
John R. Shaw4-Mar-06 15:51 
GeneralRe: I FOUND IT!!! Pin
Waldermort4-Mar-06 21:08
Waldermort4-Mar-06 21:08 
GeneralRe: I FOUND IT!!! Pin
John R. Shaw5-Mar-06 14:21
John R. Shaw5-Mar-06 14:21 
Questionmemcat() Pin
chaitanya224-Mar-06 3:44
chaitanya224-Mar-06 3:44 
AnswerRe: memcat() Pin
Gary R. Wheeler4-Mar-06 4:28
Gary R. Wheeler4-Mar-06 4:28 

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.