By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Segmentation Fault

P: 1
Good day!

I'm parsing a file and I put each line into vector of string datatype. From that vector I'm accessing certain dataline which I need to concatenate. the problem is upon concatenating the 8th line of data, segmentation fault(core dumped) error appears. But the 1st seven lines that were concatenated resulted into successful operation. Why is that so? Any idea? Thanks!
Mar 14 '07 #1
Share this Question
Share on Google+
2 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
Good day!

I'm parsing a file and I put each line into vector of string datatype. From that vector I'm accessing certain dataline which I need to concatenate. the problem is upon concatenating the 8th line of data, segmentation fault(core dumped) error appears. But the 1st seven lines that were concatenated resulted into successful operation. Why is that so? Any idea? Thanks!
What are you doing with the other 8 lines? How are you reading the data in? Are you clearing the buffer after your read each line in?
Mar 14 '07 #2

100+
P: 180
What are you doing with the other 8 lines? How are you reading the data in? Are you clearing the buffer after your read each line in?
Can you please post your code???
Mar 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.