Search:
Forum
General C++ Programming
Unable to find the cause of segmentation
Unable to find the cause of segmentation error in this code
Mar 6, 2010 at 6:46am UTC
firedraco
(6247)
Line 71 is illegal, since you haven't allocated any memory for the pointer yet, and are thus trying to deference a garbage pointer. I think you meant to do this:
activecust = &bcust[i];
This causes the pointer to point at the specific instance.
Mar 6, 2010 at 6:50am UTC
helios
(17607)
Huh? It would appear OP has deleted his post, but the thread has (somehow) remained.
Last edited on
Mar 6, 2010 at 6:54am UTC
Mar 6, 2010 at 7:30am UTC
firedraco
(6247)
Yeah, this seems to happen sometimes >_>
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs